﻿body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #222;
    margin: 0;
    padding: 0;
    font-size: 16px !important;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 10px;
}

.title {
    font-size: 24px;
    color: #760e26;
    text-align: center;
    margin-bottom: 10px;
}

.section {
    margin-bottom: 25px;
    padding: 12px 16px;
    border-left: 12px solid #760e26;
    background-color: #fdfdfd;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

    .section h2 {
        color: #760e26;
        font-size: 16px;
        margin: 0 0 6px 0;
    }

    .section p {
        margin: 0;
        font-size: 20px;
        line-height: 1.5;
    }

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    height: 150px;
    gap:15px;
}

    .gallery img {
        width: 140px;
        height: 130px;
        border-radius: 4px;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        flex-shrink: 0;
        margin-left:8px;
    }

        .gallery img:hover {
            box-shadow: 0 4px 12px rgba(128, 0, 0, 0.4); 
        }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

    .modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .modal img {
        width: 70vmin;
        height: 70vmin;
        object-fit: contain;
        border-radius: 14px;
        background-color: transparent;
        transition: transform 0.3s ease;
        margin-left:50px;
        margin-top:20px;
    }

    .modal .close {
        position: absolute;
        top: 30px;
        right: 40px;
        font-size: 36px;
        color: white;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .modal .close:hover {
            color: #760e26;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .modal img {
        max-width: 95%;
        max-height: 75vh;
        margin-right:55px;
    }

    .modal .close {
        top: 15px;
        right: 30px;
        font-size: 32px;
    }
}

/* Gallery hover effects */
.gallery img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .gallery img:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(128, 0, 0, 0.4);
    }

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 75vh;
    }

    .close {
        top: 15px;
        right: 30px;
        font-size: 32px;
    }
}

.edit-create-btn {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-primary {
    background-color: #760e26;
    color: white;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
}

    .btn-primary:hover {
        background-color: white;
        color: #760e26;
        border: 2px solid #760e26;
        box-shadow: 0 0 10px #760e26;
    }

    .btn-primary:focus, btn-primary:active {
        outline: none;
        box-shadow: none;
        border: 2px solid #760e26;
        background-color: white;
        color: #760e26;
    }

.btn-danger {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
    border: 2px solid transparent;
}

    .btn-danger:hover {
        background-color: white;
        color: #760e26;
        border: 2px solid #760e26;
        box-shadow: 0 0 10px #760e26;
    }

.edit-delete-btn {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.section p {
    font-size:16px;
}