/* ================================
   WHIF 2023 - General Styling
================================ */

.whif-container {
    padding: 30px 0;
}


/* ================================
   Title Styling
================================ */

.whif-title {
    color: #3b86c4;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1px;
}

.whif-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
    font-size: 18px;
    font-weight: 400;
}


/* ================================
   Main Image
================================ */

.whif-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* ================================
   Content Styling
================================ */

.whif-content {
    display: flex;
    align-items: center;
}

.whif-details {
    padding: 20px;
    border-radius: 10px;
    color: #4096d9;
    background: transparent;
}

.whif-details p {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.6;
}


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

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.05);
}


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

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

.lightbox img {
    display: block;
    max-width: 90%;
    max-height: 84vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-in-out;
}


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

.lightbox .whif-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    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: rgba(0, 0, 0, 0.58);

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

    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;
}

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

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

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


/* ================================
   Previous / Next Buttons
================================ */

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    z-index: 10004;

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

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

    border: 0;
    border-radius: 50%;

    color: #fff;
    background: rgba(255, 255, 255, 0.2);

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.3s ease-in-out,
        transform 0.2s ease-in-out;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.5);
}


/* ================================
   Fade-in Animation
================================ */

@keyframes whif2023FadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ================================
   Responsive Design
================================ */

@media (max-width: 768px) {

    .whif-container {
        padding: 10px;
    }

    .whif-title {
        font-size: 28px;
    }

    .whif-subtitle {
        font-size: 16px;
    }

    .whif-content {
        flex-direction: column;
        text-align: center;
    }

    .whif-image {
        margin-bottom: 20px;
    }

    .whif-details {
        padding: 10px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px 0;
    }

    .gallery-item:hover {
        transform: none;
    }

    .lightbox {
        padding: 15px;
    }

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

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

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

    .lightbox .prev {
        left: 10px;
    }

    .lightbox .next {
        right: 10px;
    }
}