/* =========================
   Custom Fonts
   ========================= */

/* Body + general UI font */
@font-face {
    font-family: 'Lexend';
    src: url('../fonts/Lexend.ttf') format('truetype'),
         url('../fonts/Lexend.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Overlay / gallery text font */
@font-face {
    font-family: 'Caveat';
    src: url('../fonts/AnonymousPro-Italic.ttf') format('truetype'),
         url('../fonts/Marker Brush.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


/* =========================
   Global Styles
   ========================= */

body {
    font-family: 'Caveat', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/background2.jpg');
    background-size: cover;
    background-repeat: repeat-y;
    background-attachment: scroll;
    color: #333;
}


/* =========================
   Header
   ========================= */

header {
    font-family: 'Lexend', sans-serif; /* replaced Bagme */
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    padding-top: 10rem;
    background: rgba(0, 0, 0, 0);
    letter-spacing: 0.310em;
}


/* =========================
   Navigation
   ========================= */

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
}

nav ul li a:hover {
    text-decoration: underline;
}


/* =========================
   Sections
   ========================= */

section {
    padding: 1.2rem;
    margin: 1.2rem;
    border-radius: 0;
}


/* =========================
   Footer
   ========================= */

footer {
    padding: 2rem;
    text-align: center;
    
    
}


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

#gallery {
    margin-top: 10rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 0.7rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.vertical {
    grid-row: span 2;
    height: fit-content;
}


/* =========================
   Overlay
   ========================= */

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}


/* =========================
   Overlay Text (Caveat)
   ========================= */

.text {
    font-family: 'Caveat', cursive;
    color: white;
    font-size: clamp(1rem, 2.5vw, 3rem);
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0);
}

.footer-menu a {
    margin: 0 1rem;
    text-decoration: none;
    color: #111;
    font-size: clamp(14px, 1.5vw, 18px);
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #fff;
}