body {
    background-color: #FFF8E1;
    background-image: url('background_pattern.png');
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: #6D4C41;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #FFECB3;
    border-bottom: 5px solid #D2B48C;
}

.header-logo {
    max-width: 100%;
    height: auto;
    width: 300px;
}

main {
    padding: 2rem 1rem;
}

#intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.7);
    border: 3px solid #D2B48C;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#intro h2 {
    color: #BF360C;
    font-weight: 800;
}

#gallery {
    max-width: 1200px;
    margin: 0 auto;
}

#gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #A1887F;
    margin-bottom: 2rem;
    font-weight: 800;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background-color: #fff;
    border: 8px solid #D2B48C;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(109, 76, 65, 0.3);
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 8px 8px 20px rgba(109, 76, 65, 0.5);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    cursor: pointer;
}

.item-title {
    margin-top: 10px;
    font-weight: 700;
    color: #795548;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    background-color: #FFECB3;
    border-top: 3px solid #D2B48C;
    font-weight: 700;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(93, 64, 55, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 80%;
    max-height: 80vh;
    border: 10px solid #D2B48C;
    border-radius: 10px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.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;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
    .header-logo {
        width: 250px;
    }
}