/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #222;
    line-height: 1.6; /* slightly better readability */
}

/* Header Styling */
header {
    color: white;
    text-align: center;
    font-size: 1.5rem; /* a bit larger for emphasis */
    font-weight: bold;
    letter-spacing: 1px;
    position: relative; /* useful for overlay text */
}

img.headerphoto {
    width: 100%;
    height: 300px; /* fixed height for uniform look */
    object-fit: cover;
    filter: brightness(70%);
    display: block; /* removes tiny bottom gap */
}

.headertext {
    position: absolute;
    top: 50%; /* vertically center */
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.55);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1.25rem;
}

/* Flex Container */
.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeSlideIn 0.6s ease both;
}

.flex-container:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.flex-container.reverse {
    flex-direction: row-reverse;
}

/* Curio Photos */
img.curio_photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

img.curio_photo:hover {
    transform: scale(1.07);
}

/* Text Container */
.text-container {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close:hover {
    color: #ddd;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
