/* styles.css */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start; /* Align boxes to the start */
}

.box {
    flex: 0 0 32%; /* Prevent growth or shrink, maintain the width for three boxes per row */
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease; /* Transition for multiple properties */
}

/* Media Query for Medium Screens (tablets) */
@media (max-width: 800px) {
    .box {
        flex: 0 0 48%; /* Maintain two boxes per row */
    }
}

/* Media Query for Small Screens (mobile devices) */
@media (max-width: 500px) {
    .box {
        flex: 0 0 100%; /* One box per row on small screens */
    }
}


.box-header img {
    width: 100%; /* Ensures the image covers the box */
    height: auto;
    transition: transform 0.3s ease; /* Smooth transition for image transform */
}

.box-title {
    position: absolute;
    bottom: 10px; /* Position title at the bottom of the image */
    left: 10px; /* Add some padding from the left */
    color: white; /* Ensures the title is visible on darker images */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for better visibility */
    padding: 5px 10px;
    margin: 0;
    width: calc(100% - 20px); /* Adjust width to fit inside the box */
}

.box-blurb {
    position: absolute;
    top: 10px; /* Position blurb at the top of the image */
    right: 10px; /* Align to the right */
    color: white;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for visibility */
    padding: 3px 6px;
    font-size: 0.8em; /* Smaller font size */
    max-width: 50%; /* Limit width to avoid covering too much of the image */
    text-align: right;
}

.content {
    display: none; /* Initially hidden */
    padding: 10px;
}

/* Expanded style */
.expanded {
    flex: 1 0 100%; /* Takes 100% of the container width, no shrink, ensure it occupies the entire row */
    max-width: 960px; /* Maximum width for the expanded box */
    margin: 0 auto; /* Centers the box if it's narrower than 100% of the container */
    box-sizing: border-box; /* Ensures padding is included in width calculations */
}

.expanded .content {
    display: block; /* Shows the content on expansion */
}

.expanded .box-header {
    display: none; /* Hide the box-header including the image and title when expanded */
}

.content img {
    width: 100%; /* Ensure content images fill the expanded box */
    height: auto;
}

.back-button {
    padding: 8px 16px;
    font-size: 16px;
    color: white;
    background-color: #007BFF; /* Bootstrap primary color for consistency */
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}




/* Do some text style changes */

h1 {
  font-family: Arial, sans-serif;
  font-size: 40px;
  color: #333;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.42857143;
	color: #333;
	background-color: #FFFFFF;
}

