/* =====================================================
   EALATHU THIRUCHENTHUR MURUGAN TEMPLE
   GALLERY ALBUM
===================================================== */


/* =====================================================
   COLOUR PALETTE
===================================================== */

:root {

    --background: #FFF4E3;

    --background-light: #FFF9F0;

    --primary: #7A1F2B;

    --primary-dark: #5E1721;

    --secondary: #D96B27;

    --accent: #E5A72A;

    --accent-light: #F2C65A;

    --text: #3B2520;

    --text-soft: #6F5147;

    --white: #FFFFFF;

    --border:
        rgba(122, 31, 43, 0.16);

    --shadow:
        rgba(59, 37, 32, 0.10);

}


/* =====================================================
   RESET
===================================================== */

html {

    scroll-behavior: smooth;

}


*,
*::before,
*::after {

    box-sizing: border-box;

}


body {

    margin: 0;

    padding: 0;

    overflow-x: hidden;

}


/* =====================================================
   ALBUM PAGE
===================================================== */

.album-page {

    width: 100%;

    min-height: 100vh;

    background:
        var(--background);

}


/* =====================================================
   HERO
===================================================== */

.album-hero {

    position: relative;

    min-height: 310px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(229, 167, 42, 0.17),
            transparent 40%
        ),

        linear-gradient(
            145deg,
            #7A1F2B 0%,
            #641823 100%
        );

}


.album-hero::before {

    content: "";

    position: absolute;

    top: -150px;

    left: 50%;

    width: 650px;

    height: 300px;

    transform:
        translateX(-50%);

    background:

        radial-gradient(
            ellipse,
            rgba(229, 167, 42, 0.10),
            transparent 70%
        );

    pointer-events: none;

}


.album-hero::after {

    content: "";

    position: absolute;

    bottom: -120px;

    left: 50%;

    width: 700px;

    height: 230px;

    transform:
        translateX(-50%);

    background:

        radial-gradient(
            ellipse,
            rgba(229, 167, 42, 0.09),
            transparent 70%
        );

    pointer-events: none;

}


.album-hero-content {

    position: relative;

    z-index: 2;

    width: 92%;

    max-width: 1000px;

    text-align: center;

}


/* =====================================================
   BACK BUTTON
===================================================== */

.back-gallery {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 26px;

    padding:
        9px 17px;

    color:
        rgba(255,255,255,0.86);

    border:
        1px solid
        rgba(255,255,255,0.34);

    border-radius: 30px;

    background:
        rgba(255,255,255,0.07);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    text-decoration: none;

    transition:
        all 0.25s ease;

}


.back-gallery:hover {

    color:
        #FFFFFF;

    border-color:
        var(--accent);

    background:
        rgba(229,167,42,0.13);

    transform:
        translateX(-3px);

}


.back-arrow {

    color:
        var(--accent-light);

    font-size: 15px;

}


/* =====================================================
   KICKER
===================================================== */

.gallery-kicker {

    display: block;

    color:
        #F7D36B;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 3px;

}


/* =====================================================
   SYMBOL
===================================================== */

.gallery-symbol {

    margin:
        11px 0 8px;

    color:
        var(--accent-light);

    font-size: 20px;

}


/* =====================================================
   TITLE
===================================================== */

.album-hero h1 {

    margin: 0;

    color:
        #FFFFFF;

    font-family:
        "Noto Sans Tamil",
        "Latha",
        Arial,
        sans-serif;

    font-size:
        clamp(30px, 4.5vw, 50px);

    line-height: 1.3;

    font-weight: 800;

}


/* =====================================================
   HERO DATE
===================================================== */

.album-hero-date {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 14px;

    color:
        #F6D16A;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    font-weight: 700;

}


.album-hero-date span {

    color:
        var(--accent);

}


/* =====================================================
   ALBUM SECTION
===================================================== */

.album-section {

    padding:
        62px 5%
        90px;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(229,167,42,0.08),
            transparent 32%
        ),

        var(--background);

}


.album-container {

    width: 100%;

    max-width: 1450px;

    margin:
        0 auto;

}


/* =====================================================
   ALBUM TOP
===================================================== */

.album-top {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 30px;

    padding-bottom: 18px;

    border-bottom:
        1px solid
        rgba(122,31,43,0.13);

}


.album-small-title {

    display: block;

    color:
        var(--secondary);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 3px;

}


.album-top h2 {

    margin:
        7px 0 0;

    color:
        var(--primary);

    font-family:
        "Noto Sans Tamil",
        "Latha",
        Arial,
        sans-serif;

    font-size: 28px;

    line-height: 1.4;

    font-weight: 800;

}


/* =====================================================
   PHOTO COUNT
===================================================== */

.album-count {

    display: flex;

    align-items: center;

    gap: 7px;

    flex-shrink: 0;

    padding:
        8px 14px;

    color:
        var(--text-soft);

    border:
        1px solid
        rgba(122,31,43,0.16);

    border-radius:
        25px;

    background:
        #FFFFFF;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;

    font-weight: 600;

}


.album-count strong {

    color:
        var(--primary);

    font-size: 19px;

    font-weight: 800;

}


/* =====================================================
   PHOTO GRID
   DESKTOP = 4 × 2
===================================================== */

.album-photo-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

}


/* =====================================================
   PHOTO CARD
===================================================== */

.album-photo {

    position: relative;

    height: 235px;

    overflow: hidden;

    border:
        1px solid
        rgba(122,31,43,0.14);

    border-radius: 10px;

    background:
        #EBDCC7;

    cursor: pointer;

    box-shadow:
        0 8px 25px
        rgba(59,37,32,0.08);

    transition:
        transform .30s ease,
        border-color .30s ease,
        box-shadow .30s ease;

}


.album-photo:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(122,31,43,0.35);

    box-shadow:
        0 16px 35px
        rgba(59,37,32,0.15);

}


/* =====================================================
   IMAGE
===================================================== */

.album-photo img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .55s ease;

}


.album-photo:hover img {

    transform:
        scale(1.07);

}


/* =====================================================
   IMAGE OVERLAY
===================================================== */

.album-photo-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(59,37,32,0.35);

    opacity: 0;

    transition:
        opacity .25s ease;

}


.album-photo:hover
.album-photo-overlay {

    opacity: 1;

}


.album-photo-overlay span {

    width: 47px;

    height: 47px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        #FFFFFF;

    border:
        1px solid
        rgba(255,255,255,0.65);

    border-radius: 50%;

    background:
        rgba(122,31,43,0.85);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 24px;

}


/* =====================================================
   PHOTO NUMBER
===================================================== */

.photo-number {

    position: absolute;

    left: 10px;

    bottom: 10px;

    min-width: 27px;

    padding:
        5px 7px;

    color:
        #FFFFFF;

    border:
        1px solid
        rgba(255,255,255,0.30);

    border-radius: 4px;

    background:
        rgba(59,37,32,0.72);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 8px;

    font-weight: 700;

    text-align: center;

}


/* =====================================================
   LIGHTBOX
===================================================== */

.photo-lightbox {

    position: fixed;

    z-index: 99999;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        rgba(59,37,32,0.94);

    backdrop-filter:
        blur(10px);

}


.photo-lightbox.active {

    display: flex;

}


/* =====================================================
   LIGHTBOX CONTENT
===================================================== */

.lightbox-content {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    max-width: 90vw;

    max-height: 87vh;

}


.lightbox-content img {

    display: block;

    max-width: 86vw;

    max-height: 80vh;

    width: auto;

    height: auto;

    object-fit: contain;

    border:
        2px solid
        rgba(229,167,42,0.65);

    box-shadow:
        0 25px 90px
        rgba(0,0,0,0.55);

    transition:
        opacity .2s ease;

}


/* =====================================================
   LIGHTBOX BUTTONS
===================================================== */

.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: absolute;

    z-index: 5;

    width: 47px;

    height: 47px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    color:
        #FFFFFF;

    border:
        1px solid
        rgba(229,167,42,0.65);

    border-radius: 50%;

    background:
        rgba(122,31,43,0.82);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 27px;

    line-height: 1;

    cursor: pointer;

    transition:
        all .25s ease;

}


.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {

    background:
        var(--secondary);

    border-color:
        var(--accent-light);

}


.lightbox-close {

    top: 22px;

    right: 25px;

}


.lightbox-prev {

    top: 50%;

    left: 22px;

    transform:
        translateY(-50%);

}


.lightbox-next {

    top: 50%;

    right: 22px;

    transform:
        translateY(-50%);

}


/* =====================================================
   COUNTER
===================================================== */

.lightbox-counter {

    position: absolute;

    left: 50%;

    bottom: -37px;

    transform:
        translateX(-50%);

    min-width: 60px;

    padding:
        6px 12px;

    color:
        #FFFFFF;

    border:
        1px solid
        rgba(229,167,42,0.50);

    border-radius: 20px;

    background:
        rgba(122,31,43,0.85);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    text-align: center;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {

    .album-photo-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .album-photo {

        height: 225px;

    }

}


/* =====================================================
   TABLET SMALL
===================================================== */

@media (max-width: 800px) {

    .album-photo-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .album-photo {

        height: 205px;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .album-hero {

        min-height: 275px;

    }


    .album-section {

        padding:
            50px 5%
            70px;

    }


    .album-top {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 13px;

        margin-bottom:
            25px;

    }


    .album-top h2 {

        font-size:
            23px;

    }


    .album-photo-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap:
            9px;

    }


    .album-photo {

        height:
            165px;

        border-radius:
            8px;

    }


    .album-photo-overlay {

        opacity:
            0;

    }


    .album-photo-overlay span {

        width:
            40px;

        height:
            40px;

        font-size:
            21px;

    }


    .photo-number {

        left:
            7px;

        bottom:
            7px;

    }


    .photo-lightbox {

        padding:
            15px;

    }


    .lightbox-content img {

        max-width:
            88vw;

        max-height:
            75vh;

    }


    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {

        width:
            42px;

        height:
            42px;

        font-size:
            23px;

    }


    .lightbox-close {

        top:
            13px;

        right:
            13px;

    }


    .lightbox-prev {

        left:
            7px;

    }


    .lightbox-next {

        right:
            7px;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .album-photo {

        height:
            145px;

    }


    .album-photo-overlay {

        opacity:
            1;

        align-items:
            flex-end;

        justify-content:
            flex-end;

        padding:
            7px;

        background:
            linear-gradient(
                180deg,
                transparent 55%,
                rgba(59,37,32,0.30)
            );

    }


    .album-photo-overlay span {

        width:
            31px;

        height:
            31px;

        font-size:
            17px;

    }


    .back-gallery {

        font-size:
            9px;

    }

}