/* 
 * 8/11/2022	Styles for galleries/related classifieds
*/
table.gallery-container {
	table-layout: fixed;
    width: 98%;
	padding: 0px 1%;
}

table.gallery-container .tr-photo a > img {
	width: calc(100% - 3px);
    max-width: 237px;
    border-radius: 10px;
    border: 1.5px solid #d2d2d2;
}

table.gallery-container table {
	width: 95%
}

table.gallery-container > tbody > tr:not(.exception) > td > div {
	max-width: 240px;
    float: none;
}

table.gallery-container table > tbody > tr:not(.tr-photo) > td { margin-top: 1% }

/*table.gallery-container table > tbody > .tr-photo > td > div {*/
table.gallery-container .tr-photo > td > div {
    z-index: 100 !important;
    padding-top: 80%;
    position: relative;
    overflow: hidden;
    display: block;
}

/* 'New' image container */
table.gallery-container .tr-photo > td > div > div {
    position: absolute;
    top: 0%;
    z-index: 1000;
    width: 94%;
	padding-right: 6%;
}

/* Main photo container */
table.gallery-container .tr-photo > td > div > a > img {
    transform: translate3d(-50%,-50%,0);
    position: absolute;
    left: 50%;
    top: 50%;
	width: calc(100% - 3px);
    max-width: 237px;
    border-radius: 10px;
    border: 1.5px solid #d2d2d2;
}

/* 'New' image */
table.gallery-container .tr-photo > td > div > div > img {
	float: right;
	padding-top: 8%;
}

table.gallery-container .tr-price span {
	font-size: 14px!important;
	font-weight: bold;	
}

table.gallery-container span
, table.gallery-container a {
    font-size: 12px;
}

table.gallery-container a
, table.gallery-container span {
	text-decoration: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

table.gallery-container .tr-title span
, table.gallery-container .tr-title a
, table.gallery-container .tr-make-model span
, table.gallery-container .tr-make-model a { color: #666!important; }

table.gallery-container table > tbody > .tr-title div {
	width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	max-width: 230px;
}

table.gallery-container table > tbody > .tr-city span { color: #999!important; }

div.custom-wrap-text {
	width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 230px;
}