* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
}

section {
    background-color: #9A3227;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0;
}

.collection {
    margin-bottom: 5em;
}

/* Centered title with line styling */
.line-text {
    text-align: center;
    border-bottom: 2px solid #eac08c;
    line-height: 0;
    margin: 50px auto;
}

.line-text span {
    background: #9A3227;
    padding: 0 10px;
    color: #eac08c;
    font-family: myheaderfont;
    font-size: 2em;
}

/* Gallery Layout */
.gallery {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px; /* Adds space between gallery items */
    padding: 10px;
}

.gallery div {
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .line-text span {
        font-size: 1.5em; /* Reduce title font size on tablets */
    }

    .gallery div {
        width: 45%; /* Display two items per row on tablets */
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .line-text span {
        font-size: 1.2em; /* Further reduce title font size on mobile */
    }

    .gallery div {
        width: 90%; /* Full width for gallery items on mobile */
        margin: 0 auto; /* Center align on smaller screens */
    }
}
