:root {
    --primary-color: #6D2323;
    --secondary-color: #A31D1D;
    --background-color: #FEF9E1;
    --header-color: #E5D0AC;
    --modal-overlay: rgba(109, 35, 35, 0.9);
    --contact-modal-overlay: rgba(109, 35, 35, 0.8);
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    background-color: var(--background-color);
    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 20px;
    background-color: var(--header-color);
    box-shadow: 0 2px 4px rgba(109, 35, 35, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.title {
    color: var(--primary-color);
    font-family: Arial, sans-serif;
}

.title h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
}

.info-btn {
    color: var(--secondary-color);
    margin: 0px;
    margin-top: 10px;
    background-color: transparent;
    border: none;
    transition: color 0.3s ease;
}

.info-btn:hover {
    color: var(--primary-color);
}

.gallery {
    columns: 4;
    column-gap: 16px;
    padding: 24px;
    padding-top: 16px;  /* Reduced top padding since header is now sticky */
}

.gallery-item {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(109, 35, 35, 0.1);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(109, 35, 35, 0.15);
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    display: none;
}

#modalImg {
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#closeBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--background-color);
    font-size: 30px;
    cursor: pointer;
    background: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--background-color);
}

#contactModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--contact-modal-overlay);
    display: none;
    z-index: 1000;
}

.contact-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    width: 75%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--header-color);
}

.contact-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.contact-item svg {
    margin-right: 15px;
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

#contactCloseBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

@media screen and (max-width: 1200px) {
    .gallery {
        columns: 3;
    }
}

@media screen and (max-width: 768px) {
    .gallery {
        columns: 2;
    }
}

@media screen and (max-width: 480px) {
    .gallery {
        columns: 1;
    }
}

#goToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--background-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(109, 35, 35, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

#goToTop:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

#goToTop svg {
    width: 24px;
    height: 24px;
}