.inmemo-hero-section {
    background:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/inmemo_bg.png");
    background-size: cover;
    background-position: center;
    padding: 45px 0;
    color: white;
    text-align: center;
    min-height: 30vh;
    display: flex;
    align-items: center;
}

.inmemo-content-section {
    background-color: #f2f2f2;
    background-image:
        linear-gradient(
            30deg,
            #ebebeb 12%,
            transparent 12.5%,
            transparent 87%,
            #ebebeb 87.5%,
            #ebebeb
        ),
        linear-gradient(
            150deg,
            #ebebeb 12%,
            transparent 12.5%,
            transparent 87%,
            #ebebeb 87.5%,
            #ebebeb
        ),
        linear-gradient(
            30deg,
            #ebebeb 12%,
            transparent 12.5%,
            transparent 87%,
            #ebebeb 87.5%,
            #ebebeb
        ),
        linear-gradient(
            150deg,
            #ebebeb 12%,
            transparent 12.5%,
            transparent 87%,
            #ebebeb 87.5%,
            #ebebeb
        );
    background-size: 80px 140px;
    padding: 100px 0 100px 0;
}

.tribute-card-container {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    padding: 60px !important;
}

#tributeCarousel img {
    border: 15px solid #ffffff;
    outline: 1px solid #e0e0e0;
    max-height: 650px;
    object-fit: contain;
    background-color: #fdfdfd;
    transition: transform 0.5s ease;
}

.carousel-control-prev,
.carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(240, 192, 64, 0.85);
    border: 2px solid #f0c040;
    opacity: 1;
    transition: background 0.2s, transform 0.15s;
}

.carousel-control-prev { left: 16px; }
.carousel-control-next { right: 16px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #f0c040;
}

.carousel-control-prev:active,
.carousel-control-next:active {
    transform: translateY(-50%) scale(0.9);
    background: #c89a10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0) brightness(0);
    width: 1.4rem;
    height: 1.4rem;
}

.quote {
    margin-top: 20px;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #000000;
}

/* ── Mobile: full-width carousel ── */
@media (max-width: 767px) {
    .inmemo-content-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .inmemo-content-section .row {
        margin: 0;
    }

    .inmemo-content-section .col-lg-10 {
        padding: 0;
    }

    .inmemo-content-section {
        padding: 30px 0;
    }

    .tribute-card-container {
        padding: 12px 8px !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    #tributeCarousel img {
        border-width: 4px;
        max-height: none;
        height: 75vw !important;
        object-fit: contain;
    }

    #tributeCarousel {
        padding: 0 44px;
    }

    .carousel-control-prev { left: 0; }
    .carousel-control-next { right: 0; }

    .quote {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 400px) {
    #tributeCarousel img {
        height: 80vw !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 38px;
        height: 38px;
    }
}

/* ── Zoom cursor hint ── */
#tributeCarousel img {
    cursor: zoom-in;
}

/* ── Lightbox ── */
.imm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.imm-lightbox.open {
    display: flex;
}

.imm-lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border: 3px solid rgba(240, 192, 64, 0.4);
    border-radius: 4px;
    animation: immIn 0.2s ease;
    cursor: default;
}

@keyframes immIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.imm-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(240, 192, 64, 0.85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.imm-lightbox-close:hover {
    background: #f0c040;
}