/* =========================
   GLOBAL
========================= */

body {
    font-family: Arial;
    margin: 0;
    background: #f4f4f4;
}

.container { padding: 20px; }

.card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

@media(max-width:768px){
    h1 { font-size:20px; }
}

/* =========================
   HEADER
========================= */
 
/* =========================
   EVENTS GRID
========================= */

.event-grid {
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
    margin-top:20px;
}

@media(max-width:768px){
    .event-grid { grid-template-columns: repeat(2,1fr); }
}

.event-card {
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
    display:flex;
    flex-direction:column;
}

.event-card img {
    width:100%;
    height:200px;
    object-fit:cover;
}

.event-card h3 {
    font-size:16px;
    padding:10px;
    margin:0;
}

.event-card .date {
    font-size:13px;
    color:#888;
    padding:0 10px;
}

.event-card .intro {
    font-size:14px;
    padding:10px;
    flex-grow:1;
}

.readmore {
    display:block;
    text-align:center;
    background:#8B0000;
    color:white;
    padding:8px;
    text-decoration:none;
}

/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
    display:grid;
    grid-template-columns: repeat(4,1fr);
    gap:15px;
    margin-top:20px;
}

@media(max-width:768px){
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

.thumb {
    width:100%;
    height:180px;
    object-fit:cover;
    cursor:pointer;
    border-radius:8px;
    transition:0.3s;
}

.thumb:hover { transform:scale(1.05); }

/* =========================
   MODAL (Merged Clean Version)
========================= */

.modal {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    z-index:999;
    flex-direction:column;
    animation:fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from{opacity:0;}
    to{opacity:1;}
}

.modal-content {
    max-width:90%;
    max-height:80%;
    border-radius:10px;
}

.close {
    position:absolute;
    top:20px;
    right:30px;
    color:white;
    font-size:30px;
    cursor:pointer;
}

.prev, .next {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:white;
    font-size:40px;
    cursor:pointer;
    padding:10px;
}

.prev { left:20px; }
.next { right:20px; }

.prev:hover, .next:hover { color:#ccc; }

.caption {
    color:white;
    margin-top:15px;
    font-size:16px;
    text-align:center;
}

.counter {
    color:white;
    position:absolute;
    bottom:20px;
    right:30px;
    font-size:14px;
}

/* =========================
   CONTACT
========================= */

.contact-section {
    max-width:700px;
    margin:40px auto;
    padding:20px;
}

.contact-section h2 {
    text-align:center;
    margin-bottom:20px;
}

.contact-section input,
.contact-section textarea,
.contact-section select {
    width:100%;
    padding:10px;
    margin-bottom:15px;
}

.contact-section button {
    background:#8B0000;
    color:white;
    padding:10px 20px;
    border:none;
    cursor:pointer;
}

