:root {
    --primary: #ec7505ff;
    --secondary-dark: #171614ff;
    --text-color: #b22222;
    --background: linear-gradient(#fffdf7, #fff);
    --dark: #000000ff;
    --light: #ffffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--background);
}

.gallary-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 1rem 1rem;
    font-family: 'Poppins', sans-serif;
    /* background-color: #f8f9fa; */
    color: #343a40;
    line-height: 1.6;
}

/* Section headings and sub-headings */
.gallary-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallary-section-header h2 {

    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px #ffc024c9;
    font-family: "Mozilla Headline", sans-serif;
}

.gallary-section-header p {
    font-size: 1.1rem;
    color: var(--secondary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* Gallery Navigation Buttons */
.gallery-nav {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-nav button {
    background-color: transparent;
    border: 2px solid var(--secondary-dark);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 25px;
    margin: 0 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav button.active {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgb(0 0 0 / 54%);
}

.gallery-nav button:hover:not(.active) {
    background-color: #f3e5e9;
}

/* Gallery Grid Layouts */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(307px, 1fr));
    gap: 0.5rem;
}

@media screen and (max-width:787px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Common item styles */
.gallery-item {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image specific styles */
.gallery-item img {
    width: 100%;
    height: 197px;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 787px) {
    .gallery-item img {
        height: 117px;
    }
}

/* Video specific styles to maintain aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* "View More" button styles */
.gallery-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-more {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    /* A clean, professional blue */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 4px 0px 20px rgb(0 0 0 / 61%);
}

.btn-view-more:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
}

.btn-view-more i {
    margin-left: 10px;
}

/* Class to hide sections */
.hidden {
    display: none;
}

/* Full-screen Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    /* padding-top: 60px; */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Navigation Arrows */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Gallary Section Styling Ends  */