.school-item {
    position: relative;
    display: inline-block;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 100%; /* This makes it go up */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 8px; /* Adds some space between the item and the tooltip */
}

.school-item:hover .tooltip {
    display: block;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-metadata {
    display: none;
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    width: 100%;
    text-align: center;
}

.image-container:hover .image-metadata {
    display: block;
}

img {
    max-width: 100%; /* Prevents the image from exceeding its container */
    height: auto; /* Maintains the aspect ratio */
    object-fit: cover; /* Adjusts how the image fits in the container */
}

.images-section img {
    max-width: 80%; /* Controls the image width relative to the container */
    max-height: 200px; /* Limits the height to prevent oversizing */
    height: auto; /* Maintains aspect ratio */
    margin: 10px; /* Adds spacing between images */
    object-fit: contain; /* Prevents cropping */
}

/* Search Container */

/* Styles for the grey box and content layout */
.session-container {
    display: flex;
    flex-wrap: wrap;
	flex-direction: column;
    gap: 10px; /* Reduced gap between text and image containers */
    background-color: #f2f2f2; /* Grey background */
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
	width: 100%; /* Ensure the container stretches across full width */
}
.session-info{
	display: flex;
	flex-direction: row; /* Aligns text and image side by side */
	gap: 20px; /* Space between text and image */
	align-items: center; /* Vertically centers the content */
	width: 90%;
}

.spotlight-text {
    flex: 1;
    width: 100%; /* Reduced space for text to allow more room for the image */
}

.class-counts {
    margin-top: 20px;
}

/* Images Section for phones and smaller screens */
.images-section {
    display: flex;
	flex-direction: row;
    flex-wrap: wrap; /* Allow images to flow to the next line when the container is full */
    gap: 20px; /* Adds spacing between images */
    width: 30%;
    justify-content: flex-start; /* Align images to the left */
}

.image-container {
    margin-bottom: 20px;
}

.image-container img {
    width: auto; /* Keeps the image size intact */
    height: auto; /* Maintains aspect ratio */
    max-width: 100%; /* Prevents images from overflowing */
    object-fit: contain; /* Prevents cropping and preserves the aspect ratio */
    border-radius: 8px;
}

/* Styles for larger screens (laptops and above) */
.scroll-gallery-block {
    margin-bottom: 30px;
    width: 100%;
}

.gallery-session-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Scrollable row of images */
.horizontal-scroll {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
    align-items: center;
}

/* Each image sits inside a container that doesn't force fixed dimensions */
.scroll-image-card {
    flex: 0 0 auto;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 100%;
}

/* Image itself: auto width/height to preserve natural size */
.scroll-image-card img {
    width: auto;
    height: auto;
    max-height: 450px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.scroll-image-card:hover .image-metadata {
    display: block;
}

.scroll-image-card .image-metadata {
    display: none;
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
}
.session-container {
    display: flex;
    flex-wrap: wrap;
	flex-direction:column ;
    gap: 10px;
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    width: 100%; /* Ensure the container stretches across full width */
}

.footer-container {
    width: 100%; /* Ensures footer spans full width */
    margin-top: 20px;
    clear: both; /* Ensures footer is positioned below content */
}