body {
    font-family: "Californian FB", serif;
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
    text-align: center;
    background-color: #fafafa;
    color: #333;
}

header {
    margin-bottom: 30px;
    padding: 0 15px;
}
h1 {
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    color: #2c2c2c;
}

.header-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 10px 25px;
    font-family: "Californian FB", serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: #fff;
    background-color: #333;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    width: 200px;
    box-sizing: border-box;
}

.action-btn:hover {
    background-color: #555;
}

/* Updated Gallery: Spaced out with rounded corners */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    gap: 30px;
    box-sizing: border-box;
}

figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

figure img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 15px 15px 0 0;
    background-color: #fff;
}

figure img:hover {
    transform: scale(1.05);
}

figcaption {
    padding: 15px;
    font-size: 14px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #444;
    background-color: #fff;
    border-radius: 0 0 15px 15px;
    flex-grow: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close, .close-contact {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover, .close-contact:hover {
    color: #bbb;
}

/* Contact Modal specifics */
.contact-modal-overlay {
    background-color: rgba(0,0,0,0.6);
}

.contact-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: left;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: zoomIn 0.3s ease;
}

.contact-card h2 {
    margin-top: 0;
    font-size: 28px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 18px;
    margin: 15px 0;
}

.contact-card .close-contact {
    color: #333;
    top: 10px;
    right: 20px;
    font-size: 30px;
}

.contact-card .close-contact:hover {
    color: #777;
}

/* Responsive Layout */

/* Tablet Layout */
@media (min-width: 600px) {
    h1 {
        font-size: 4.5rem;
    }
    header {
        padding: 0 30px;
    }
    figure {
        width: calc(50% - 15px); /* Account for gap */
    }
}

/* Desktop Layout */
@media (min-width: 900px) {
    h1 {
        font-size: 5rem;
    }
    header {
        padding: 0 40px;
    }
    figure {
        width: calc(33.333% - 20px); /* Account for gap */
    }
}
