@font-face {
    font-family: 'HelveticaLight';
    src: url('../Fonts/helvetica-light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    font-family: 'HelveticaLight', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    width: 95%;
    padding: 20px 40px;
    border-bottom: 1px solid #ccc;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.masonry {
    display: flex;
    flex-wrap: wrap;
}

.masonry-item {
    width: calc(33.333% - 16px);
    box-sizing: border-box;
    text-align: center;
}

.masonry-item a {
    text-decoration: none; /* Remove underline from text links */
    color: inherit; /* Keep the text color the same as the parent */
    display: block; /* Ensure the link covers the entire block */
    margin-top: 8px;
}

.masonry-item h2 {
    font-family: Helvetica;
    margin: 8px 0 0 0; /* Add some space between the image and the text */
    padding: 0; /* No padding */
    color: black; /* Text color */
    font-size: 1.2em; /* Adjust the text size as needed */
    transition: color 0.3s ease; /* Smooth transition for the hover effect */
}

.masonry-item a:hover h2 {
    color: darkgray; /* Change text color on hover */
}

.masonry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Adjust the gap between items */
}

.image-container {
    width: 100%;
    padding-top: 100%; /* Aspect ratio of 1:1 for square */
    position: relative;
    overflow: hidden;
}

/* -----Image Overlay for Catalog Name and Year----- */ 
.image-overlay {
    position: absolute;
    z-index: 0; /* Send to back */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-container:hover .catalog-name {
    opacity: 1;
}

.image-container:hover .catalog-year {
    opacity: 1;
}

.catalog-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff; /* White color */
    font-size: 1.2em;
    text-transform: uppercase; /* All caps */
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: transparent;
    z-index: 2;
}

.catalog-year {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff; /* White color */
    font-size: 1.0em;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: transparent;
    z-index: 2;
}

.catalog-name + .catalog-year {
    margin-top: -5px; /* Adjust the value as needed */
}

/* ^^^^^Image Overlay for Catalog Name and Year^^^^^ */ 

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    transition: opacity 0.3s ease; /* Smooth transition for the hover effect */
}