/* Let the photo show through behind gallery-card details. */
.gallery-item .gallery-item-text {
    padding: clamp(52px, 7vw, 90px) 15px 15px;
    text-align: left;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.18) 28%,
        rgba(0, 0, 0, 0.67) 72%,
        rgba(0, 0, 0, 0.88) 100%
    );
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.gallery-item .gallery-item-title {
    color: #fff;
    font-size: clamp(14px, 1.25vw, 17px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-item .gallery-item-price {
    margin-top: 5px;
    color: #f4f4f4;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.gallery-item .gallery-item-location:not(.mt-2) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.gallery-item .gallery-item-location.mt-2 {
    margin-top: 8px !important;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gallery-item .gallery-item-location.mt-2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 7px 2px 0;
    border-radius: 50%;
    background: #ff3b3b;
}

.gallery-item .gallery-item-banner.video {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-shadow: none;
    white-space: nowrap;
}

.gallery-item .video-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    background: #e60000;
}

.gallery-item .video-play-icon::after {
    content: "";
    margin-left: 2px;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 5px solid #fff;
}

.gallery-item .gallery-item-video-indicator {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.86);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.48);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.gallery-item .gallery-item-video-indicator .video-play-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.gallery-item .gallery-item-video-indicator .video-play-icon::after {
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-left-width: 6px;
}

.gallery-item .gallery-item-bnr.fire,
.gallery-item .gallery-item-bnr.new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    top: 10px;
    right: 10px;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.gallery-item .gallery-item-bnr.fire {
    top: auto;
    bottom: 10px;
    gap: 2px;
    padding: 4px;
    font-size: 8px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(10, 10, 10, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.gallery-item .gallery-item-bnr.fire::before {
    content: "★";
    color: #ff3b3b;
    font-size: 9px;
    line-height: 0.8;
}

.gallery-item .gallery-item-bnr.new {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #d90000;
}

.gallery-item > a:has(.gallery-item-bnr.fire) .gallery-item-text {
    padding-bottom: 48px;
}

.gallery-item > a:has(.gallery-item-bnr.fire) .gallery-item-text:has(.gallery-item-location.mt-2) {
    padding-bottom: 15px;
}

.gallery-item > a:has(.gallery-item-bnr.fire) .gallery-item-location.mt-2 {
    padding-right: 64px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 575px) {
    .gallery-item .gallery-item-text {
        padding: 48px 10px 11px;
    }
    .gallery-item .gallery-item-title {
        font-size: 13px;
    }
    .gallery-item .gallery-item-price,
    .gallery-item .gallery-item-location:not(.mt-2) {
        font-size: 11px;
    }
    .gallery-item .gallery-item-location.mt-2 {
        font-size: 10px;
    }
    .gallery-item > a:has(.gallery-item-bnr.fire) .gallery-item-text:has(.gallery-item-location.mt-2) {
        padding-bottom: 11px;
    }
}

@media (max-width: 360px) {
    .gallery-item .gallery-item-video-indicator {
        left: 8px;
        width: 24px;
        height: 24px;
    }
    .gallery-item .gallery-item-video-indicator .video-play-icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }
    .gallery-item .gallery-item-video-indicator .video-play-icon::after {
        border-top-width: 3px;
        border-bottom-width: 3px;
        border-left-width: 5px;
    }
}