﻿/* ================================
   WHIF 2025 Page Container
================================ */

.whif-2025-container {
    padding-top: 30px;
    padding-bottom: 70px;
}


/* ================================
   Hero Image
================================ */

.whif-2025-hero-image {
    position: relative;
    width: 100%;
    margin-bottom: 38px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.whif-2025-hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
}


/* ================================
   Page Heading
================================ */

.whif-2025-heading-section {
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: center;
}

.whif-2025-title {
    margin: 0;
    color: #3b86c4;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1px;
}


/* ================================
   Description Section
================================ */

.whif-2025-description {
    max-width: 1050px;
    margin: 0 auto 55px;
    padding: 30px 35px;
    border-left: 5px solid #3b86c4;
    border-radius: 10px;
    background-color: #f8fbfe;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.whif-2025-description p {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
}

.whif-2025-description p:last-child {
    margin-bottom: 0;
}


/* ================================
   Gallery Heading
================================ */

.whif-2025-gallery-heading {
    margin-bottom: 28px;
    text-align: center;
}

.whif-2025-gallery-heading h2 {
    margin-bottom: 8px;
    color: #3b86c4;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.whif-2025-gallery-heading p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}


/* ================================
   Gallery
================================ */

.whif-2025-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Center the final image when only one item is visible. */
.whif-2025-gallery[data-visible-count="1"] {
    grid-template-columns: minmax(280px, 380px);
    justify-content: center;
}

/* Center two images when a page contains two items. */
.whif-2025-gallery[data-visible-count="2"] {
    grid-template-columns: repeat(2, minmax(280px, 380px));
    justify-content: center;
}

.whif-2025-gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background-color: #eef3f7;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.11);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.whif-2025-gallery-item[hidden] {
    display: none !important;
}

.whif-2025-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.whif-2025-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.whif-2025-gallery-item:hover img {
    transform: scale(1.04);
}


/* ================================
   Pagination
================================ */

.whif-2025-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
}

.whif-2025-pagination:empty {
    display: none;
}

.whif-2025-page-button {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #3b86c4;
    border-radius: 7px;
    justify-content: center;
    align-items: center;
    color: #3b86c4;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    background-color: #fff;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.whif-2025-page-button:hover:not(:disabled) {
    color: #fff;
    background-color: #3b86c4;
    transform: translateY(-2px);
}

.whif-2025-page-button.active {
    color: #fff;
    border-color: #3b86c4;
    background-color: #3b86c4;
}

.whif-2025-page-button:focus-visible {
    outline: 3px solid rgba(59, 134, 196, 0.3);
    outline-offset: 2px;
}

.whif-2025-page-button:disabled {
    color: #999;
    border-color: #d5d5d5;
    cursor: not-allowed;
    background-color: #f4f4f4;
    transform: none;
}

/* Left and right pagination arrow buttons. */
.whif-2025-page-button.pagination-navigation {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
}


/* ================================
   Lightbox
================================ */

.whif-2025-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.94);
    z-index: 10000;
    animation: whif2025FadeIn 0.25s ease-in-out;
}

.whif-2025-lightbox img {
    display: block;
    max-width: 90%;
    max-height: 86vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}


/* ================================
   Close Button
   Dedicated selector prevents Bootstrap
   or global .close rules from hiding it.
================================ */

.whif-2025-lightbox .whif-lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    z-index: 10005;

    display: flex;
    width: 46px;
    height: 46px;
    padding: 0;

    align-items: center;
    justify-content: center;

    float: none;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    color: #fff;
    background-color: rgba(0, 0, 0, 0.58);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;

    text-align: center;
    text-shadow: none;
    text-decoration: none;

    cursor: pointer;

    opacity: 1 !important;
    visibility: visible !important;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.whif-2025-lightbox .whif-lightbox-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.85);
    transform: scale(1.08);
}

.whif-2025-lightbox .whif-lightbox-close:focus {
    outline: none;
}

.whif-2025-lightbox .whif-lightbox-close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}


/* Previous and Next Lightbox Buttons */

.whif-2025-lightbox .prev,
.whif-2025-lightbox .next {
    position: absolute;
    top: 50%;
    z-index: 10004;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.whif-2025-lightbox .prev {
    left: 24px;
}

.whif-2025-lightbox .next {
    right: 24px;
}

.whif-2025-lightbox .prev:hover,
.whif-2025-lightbox .next:hover {
    background-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-50%) scale(1.08);
}


/* ================================
   Animation
================================ */

@keyframes whif2025FadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ================================
   Tablet
================================ */

@media (max-width: 991px) {

    .whif-2025-gallery,
    .whif-2025-gallery[data-visible-count="2"],
    .whif-2025-gallery[data-visible-count="3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .whif-2025-gallery[data-visible-count="1"] {
        grid-template-columns: minmax(280px, 420px);
    }

    .whif-2025-gallery-item {
        aspect-ratio: 16 / 10;
    }

    .whif-2025-description {
        padding: 26px 28px;
    }
}


/* ================================
   Mobile
================================ */

@media (max-width: 768px) {
    .whif-2025-container {
        padding: 15px 12px 50px;
    }

    .whif-2025-hero-image {
        margin-bottom: 28px;
        border-radius: 8px;
    }

    .whif-2025-hero-img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

    .whif-2025-title {
        font-size: 25px;
    }

    .whif-2025-description {
        margin-bottom: 40px;
        padding: 22px 20px;
        border-left-width: 4px;
    }

    .whif-2025-description p {
        font-size: 16px;
        line-height: 1.7;
        text-align: left;
    }

    .whif-2025-gallery-heading {
        margin-bottom: 18px;
    }

    .whif-2025-gallery-heading h2 {
        font-size: 23px;
    }

    /*
       Mobile gallery:
       Keep two images side-by-side instead of stacking
       two large full-width images vertically.
    */
    .whif-2025-gallery,
    .whif-2025-gallery[data-visible-count="2"],
    .whif-2025-gallery[data-visible-count="3"] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        align-items: stretch;
    }

    /*
       Center the final image when the last pagination
       page contains only one image.
    */
    .whif-2025-gallery[data-visible-count="1"] {
        display: grid;
        grid-template-columns: minmax(0, 180px);
        gap: 10px;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        justify-content: center;
    }

    .whif-2025-gallery-item {
        width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: 8px;
        background-color: #eef3f7;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    .whif-2025-gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        border-radius: inherit;
        object-fit: cover;
        object-position: center;
        background-color: transparent;
    }

    .whif-2025-pagination {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 4px;
        max-width: 100%;
        margin-top: 20px;
        padding: 2px 0 4px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .whif-2025-page-button {
        flex: 0 0 36px;
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0;
        font-size: 13px;
        border-radius: 6px;
    }

    .whif-2025-page-button.pagination-navigation {
        flex-basis: 36px;
        width: 36px;
        min-width: 36px;
        padding: 0;
        font-size: 19px;
    }

    .whif-2025-lightbox {
        padding: 15px;
    }

    .whif-2025-lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }

    .whif-2025-lightbox .whif-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 30px;
        line-height: 1;
    }

    .whif-2025-lightbox .prev,
    .whif-2025-lightbox .next {
        width: 42px;
        height: 42px;
        font-size: 23px;
        line-height: 42px;
    }

    .whif-2025-lightbox .prev {
        left: 10px;
    }

    .whif-2025-lightbox .next {
        right: 10px;
    }
}


@media (hover: none) and (pointer: coarse) {
    .whif-2025-gallery-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .whif-2025-gallery-item:hover img {
        transform: none;
    }
}


/* ================================
   Small Mobile
================================ */

@media (max-width: 480px) {
    .whif-2025-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .whif-2025-hero-image {
        border-radius: 6px;
    }

    .whif-2025-title {
        font-size: 22px;
    }

    .whif-2025-description {
        padding: 18px 16px;
    }

    .whif-2025-description p {
        font-size: 15px;
    }

    .whif-2025-gallery-heading h2 {
        font-size: 21px;
    }

    .whif-2025-gallery-heading p {
        font-size: 15px;
    }

    .whif-2025-gallery,
    .whif-2025-gallery[data-visible-count="2"],
    .whif-2025-gallery[data-visible-count="3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .whif-2025-gallery[data-visible-count="1"] {
        grid-template-columns: minmax(0, 160px);
        justify-content: center;
    }

    .whif-2025-gallery-item {
        aspect-ratio: 4 / 3;
        border-radius: 7px;
    }

    .whif-2025-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: inherit;
    }

    .whif-2025-page-button {
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
        font-size: 12px;
    }

    .whif-2025-page-button.pagination-navigation {
        flex-basis: 34px;
        width: 34px;
        min-width: 34px;
        font-size: 18px;
    }
}