﻿:root {
    --unwe-maroon: #760e26;
    --light-bg: #f8f8f8;
    --shadow: rgba(0, 0, 0, 0.12);
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: var(--light-bg);
    color: #333;
}

h1 {
    font-size: 2.4rem;
    text-align: center;
    margin-top: 40px;
    color: var(--unwe-maroon);
}

h2 {
    text-align: center;
    color: var(--unwe-maroon);
    font-weight: 500;
    margin-bottom: 40px;
}

.gallery-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 60px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 18px;
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 18px var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    aspect-ratio: 4 / 3; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 24px rgba(118, 14, 38, 0.25);
    }

        .gallery-item:hover img {
            transform: scale(1.05);
        }


.text-row {
    text-align:center;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 999;
    flex-direction: column; 
}

    .modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .modal img {
        width: 70vmin;
        height: 70vmin;
        object-fit: contain;
        border-radius: 14px;
        background-color: transparent;
        margin-bottom: 20px; 
    }

    .modal .close {
        position: absolute;
        top: 30px;
        right: 40px;
        font-size: 36px;
        color: white;
        font-weight: bold;
        cursor: pointer;
        z-index: 1002;
    }

        .modal .close:hover {
            color: var(--unwe-maroon);
        }

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.lightbox-alt-text {
    position: relative;
    background: black;
    color: #fff;
    padding: 15px 25px;
    margin-top: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    z-index: 1001;
    max-width: 80%;
    border: 3px solid #760e26;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .gallery-container {
        gap: 16px;
    }

    .modal img {
        max-width: 95%;
        max-height: 75vh;
    }
}

.edit-button-container {
    text-align: center;
    margin: 40px 0 80px 0;
    margin-bottom:20px;
}

.edit-btn {
    display: inline-block;
    background-color: #760e26;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 26px;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.2s ease;
}

    .edit-btn:hover {
        background-color: #8e1631;
        transform: translateY(-2px);
        color: #fff;
    }

    .edit-btn:active {
        transform: translateY(0);
        background-color: #5f0b1c;
        color:#fff;
    }

@media (max-width: 768px) {
    .edit-btn {
        width: 70%;
        font-size: 0.95rem;
        padding: 10px 0;
    }
}
