﻿/* =========================================================
   IK EDUCATION
   GALLERY + ALBUM PHOTOS
========================================================= */


/* =========================================================
   HERO
========================================================= */

.ik-gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 45px;
    background: radial-gradient( circle at 85% 20%, rgba(8, 124, 196, .35), transparent 32% ), radial-gradient( circle at 10% 80%, rgba(245, 130, 32, .15), transparent 28% ), #032b43;
    border-bottom: 1px solid rgba(255,255,255,.08);
}


    .ik-gallery-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient( rgba(255,255,255,.035) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,.035) 1px, transparent 1px );
        background-size: 38px 38px;
        pointer-events: none;
    }


    .ik-gallery-hero::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        top: -130px;
        right: -100px;
        border: 55px solid rgba(255,255,255,.025);
        border-radius: 50%;
        pointer-events: none;
    }


.ik-gallery-hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
}


.ik-gallery-kicker {
    margin-bottom: 12px;
    color: #f58220;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


.ik-gallery-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.8px;
}


    .ik-gallery-hero h1 span {
        color: #55c7e5;
    }


.ik-gallery-hero p {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.75;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.ik-gallery-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
    font-size: 14px;
}


    .ik-gallery-breadcrumb a {
        color: #8edcf0;
        font-weight: 700;
        text-decoration: none;
    }


        .ik-gallery-breadcrumb a:hover {
            color: #fff;
        }


    .ik-gallery-breadcrumb span {
        color: rgba(255,255,255,.45);
    }


        .ik-gallery-breadcrumb span:last-child {
            max-width: 500px;
            overflow: hidden;
            color: rgba(255,255,255,.76);
            text-overflow: ellipsis;
            white-space: nowrap;
        }


/* =========================================================
   ALBUM SECTION
========================================================= */

.ik-albums-section {
    position: relative;
    padding: 75px 0 90px;
    background: linear-gradient( rgba(8,124,196,.025) 1px, transparent 1px ), linear-gradient( 90deg, rgba(8,124,196,.025) 1px, transparent 1px ), #f7fbfc;
    background-size: 38px 38px;
}


/* =========================================================
   ALBUM GRID
========================================================= */

.ik-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;
}


/* =========================================================
   ALBUM CARD
========================================================= */

.ik-album-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dcebf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(3,43,67,.07);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}


    .ik-album-card:hover {
        transform: translateY(-6px);
        border-color: #b9dce9;
        box-shadow: 0 20px 45px rgba(3,43,67,.13);
    }


/* =========================================================
   ALBUM IMAGE
========================================================= */

.ik-album-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #e8f3f7;
}


    .ik-album-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .45s ease;
    }


.ik-album-card:hover .ik-album-image img {
    transform: scale(1.05);
}


.ik-album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, transparent 60%, rgba(3,43,67,.20) );
    pointer-events: none;
}


/* =========================================================
   ALBUM PLACEHOLDER
========================================================= */

.ik-album-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient( 135deg, #eef8ff, #dceef5 );
    color: #83b5c7;
}


    .ik-album-placeholder svg {
        width: 64px;
        height: 64px;
    }


/* =========================================================
   ALBUM NAME
========================================================= */

.ik-album-name {
    min-height: 82px;
    padding: 19px 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


    .ik-album-name h2 {
        margin: 0;
        color: #032b43;
        font-size: 19px;
        font-weight: 800;
        line-height: 1.35;
        transition: color .2s ease;
    }


.ik-album-card:hover .ik-album-name h2 {
    color: #087cc4;
}


.ik-album-arrow {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef8ff;
    color: #087cc4;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}


    .ik-album-arrow svg {
        width: 18px;
        height: 18px;
    }


.ik-album-card:hover .ik-album-arrow {
    transform: translateX(3px);
    background: #f58220;
    color: #fff;
}


/* =========================================================
   PHOTOS SECTION
========================================================= */

.ik-photos-section {
    padding: 75px 0 90px;
    background: linear-gradient( rgba(8,124,196,.025) 1px, transparent 1px ), linear-gradient( 90deg, rgba(8,124,196,.025) 1px, transparent 1px ), #f7fbfc;
    background-size: 38px 38px;
}


/* =========================================================
   PHOTO GRID
========================================================= */

.ik-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    grid-auto-rows: 245px;
    gap: 16px;
}


/* =========================================================
   PHOTO
========================================================= */

.ik-photo-item {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 15px;
    background: #dcecf3;
    cursor: zoom-in;
    box-shadow: 0 8px 24px rgba(3,43,67,.08);
}


    .ik-photo-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .4s ease, filter .4s ease;
    }


    .ik-photo-item:hover img {
        transform: scale(1.055);
    }


/* =========================================================
   PHOTO HOVER
========================================================= */

.ik-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3,43,67,.46);
    opacity: 0;
    transition: opacity .25s ease;
}


.ik-photo-item:hover .ik-photo-overlay {
    opacity: 1;
}


.ik-photo-view {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    backdrop-filter: blur(5px);
    transform: scale(.85);
    transition: transform .25s ease;
}


.ik-photo-item:hover .ik-photo-view {
    transform: scale(1);
}


.ik-photo-view svg {
    width: 23px;
    height: 23px;
}


/* =========================================================
   EMPTY
========================================================= */

.ik-gallery-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 65px 25px;
    text-align: center;
    border: 1px solid #dcebf0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(3,43,67,.06);
}


.ik-gallery-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef8ff;
    color: #087cc4;
}


    .ik-gallery-empty-icon svg {
        width: 34px;
        height: 34px;
    }


.ik-gallery-empty h2 {
    margin: 0 0 8px;
    color: #032b43;
    font-size: 24px;
    font-weight: 800;
}


.ik-gallery-empty p {
    margin: 0 0 20px;
    color: #526a78;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   LIGHTBOX
========================================================= */

body.ik-lightbox-open {
    overflow: hidden;
}


.ik-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 58px 90px 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}


    .ik-lightbox.is-open {
        visibility: visible;
        opacity: 1;
    }


/* =========================================================
   LIGHTBOX BACKDROP
========================================================= */

.ik-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,18,29,.95);
    backdrop-filter: blur(7px);
}


/* =========================================================
   LIGHTBOX CONTENT
========================================================= */

.ik-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.ik-lightbox-image-wrap {
    min-height: 0;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


    .ik-lightbox-image-wrap img {
        display: block;
        max-width: 100%;
        max-height: calc(100vh - 145px);
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 25px 80px rgba(0,0,0,.45);
        opacity: 1;
        transition: opacity .15s ease, transform .15s ease;
    }


        .ik-lightbox-image-wrap img.is-changing {
            opacity: .2;
            transform: scale(.985);
        }


/* =========================================================
   LIGHTBOX FOOTER
========================================================= */

.ik-lightbox-footer {
    width: 100%;
    min-height: 40px;
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}


.ik-lightbox-title {
    max-width: 650px;
    overflow: hidden;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ik-lightbox-counter {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   CLOSE
========================================================= */

.ik-lightbox-close {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 23px;
    width: 46px;
    height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}


    .ik-lightbox-close:hover {
        transform: rotate(90deg);
        background: #f58220;
    }


    .ik-lightbox-close svg {
        width: 22px;
        height: 22px;
    }


/* =========================================================
   PREVIOUS / NEXT
========================================================= */

.ik-lightbox-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 54px;
    height: 54px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}


    .ik-lightbox-nav:hover {
        border-color: #f58220;
        background: #f58220;
    }


    .ik-lightbox-nav svg {
        width: 25px;
        height: 25px;
    }


.ik-lightbox-prev {
    left: 23px;
}


.ik-lightbox-next {
    right: 23px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .ik-albums-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }


    .ik-photos-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
        grid-auto-rows: 225px;
    }


    .ik-lightbox {
        padding-left: 75px;
        padding-right: 75px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ik-gallery-hero {
        padding: 45px 0 50px;
    }


    .ik-gallery-kicker {
        font-size: 12px;
    }


    .ik-gallery-hero h1 {
        font-size: 37px;
        line-height: 1.08;
        letter-spacing: -1px;
    }


    .ik-gallery-hero p {
        margin-top: 15px;
        font-size: 15px;
        line-height: 1.7;
    }


    .ik-gallery-breadcrumb {
        margin-top: 20px;
        font-size: 13px;
    }


    /* albums */

    .ik-albums-section {
        padding: 55px 0 65px;
    }


    .ik-albums-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .ik-album-card:hover {
        transform: none;
    }


    .ik-album-image {
        height: 245px;
    }


    .ik-album-name {
        min-height: 75px;
        padding: 17px 18px;
    }


        .ik-album-name h2 {
            font-size: 18px;
        }


    /* photos */

    .ik-photos-section {
        padding: 55px 0 65px;
    }


    .ik-photos-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        grid-auto-rows: 190px;
        gap: 10px;
    }


    .ik-photo-item {
        border-radius: 11px;
    }


    .ik-photo-overlay {
        background: linear-gradient( 180deg, transparent 50%, rgba(3,43,67,.40) );
        opacity: 1;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 10px;
    }


    .ik-photo-view {
        width: 35px;
        height: 35px;
        transform: none;
    }


        .ik-photo-view svg {
            width: 18px;
            height: 18px;
        }


    /* popup */

    .ik-lightbox {
        padding: 60px 10px 75px;
    }


    .ik-lightbox-image-wrap img {
        max-height: calc(100vh - 155px);
        border-radius: 5px;
    }


    .ik-lightbox-close {
        top: 13px;
        right: 13px;
        width: 42px;
        height: 42px;
    }


    .ik-lightbox-nav {
        top: auto;
        bottom: 14px;
        width: 44px;
        height: 44px;
        transform: none;
    }


    .ik-lightbox-prev {
        left: 14px;
    }


    .ik-lightbox-next {
        right: 14px;
    }


    .ik-lightbox-footer {
        position: absolute;
        bottom: -56px;
        left: 60px;
        right: 60px;
        width: auto;
        margin: 0;
        min-height: 44px;
    }


    .ik-lightbox-title {
        display: none !important;
    }


    .ik-lightbox-counter {
        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .ik-gallery-hero {
        padding: 38px 0 43px;
    }


        .ik-gallery-hero h1 {
            font-size: 32px;
        }


    .ik-album-image {
        height: 220px;
    }


    .ik-photos-grid {
        grid-auto-rows: 165px;
    }


    .ik-lightbox-footer {
        left: 55px;
        right: 55px;
    }
}
