/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header styles */
h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 28px;
}

/* Image gallery container */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

/* Individual image card styles */
.image-card {
    width: calc(33.33% - 20px);
    margin: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.image-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
}

/* Image and info within each card */
.image-card img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
}

.image-info {
    padding: 10px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-card:hover .image-info {
    opacity: 1;
}

/* Full-screen image view */
.fullscreen-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

/* Container for title, description, and image */
.image-container {
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title and description within the container */
#fullscreenTitle {
    font-size: 24px;
    margin-bottom: 10px;
}

#fullscreenDescription {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Full-screen image */
#fullscreenImg {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain; /* Maintain aspect ratio */
    transition: transform 0.3s ease-in-out;
}

/* Close button */
#closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    padding: 5px;
    transition: background-color 0.3s ease-in-out;
}

#closeButton:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Previous button */
#prevButton {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease-in-out;
}

#prevButton:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Next button */
#nextButton {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease-in-out;
}

#nextButton:hover {
    background-color: rgba(0, 0, 0, 0.9);
}
