.main {
    position: relative;
    margin: 0;
    padding: 0;
    background: url("https://t4.ftcdn.net/jpg/03/55/40/33/360_F_355403345_OZTa1jQz9KHTAbvs3A9dxcTgnl8r02YE.jpg");
    background-size: cover;
    background-position: center;
    height: auto;
    width: 100%;
    padding-bottom: 20px;
    z-index: -1;
}

.main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.8; /* Set the opacity to 0.8 for the black overlay */
    filter: blur(0.1px); /* Apply a slight blur effect */
    z-index: 1; /* Adjust the z-index to position the semi-transparent overlay behind text */
}

.main h1,
.main h2 {
    position: relative;
    z-index: 2; /* Set the z-index to position the text above the overlay */
    color: white;
    text-align: center;
    font-weight: 800;
}

.main h1 {
    font-size: 60px;
    padding-top: -20px;
}

.main h2 {
    font-size: 20px;
    padding-top: 40px;
}


.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.thumbnail {
    width: calc(33.33% - 20px); /* 3 images in a row with some spacing */
    margin: 10px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid orange;
    border-radius: 5px;
}

/* Responsive layout for mobile devices */
@media (max-width: 767px) {
    .thumbnail {
        width: calc(50% - 20px); /* 2 images in a row with some spacing */
    }
}

.thumbnail:hover {
    transform: scale(1.1);
}


/* Styles for the fullscreen container */
.fullscreen-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    z-index: 1;
    overflow: hidden; /* Hide overflowing content */
    transition: opacity 0.3s ease; /* Add smooth transition for opacity */
}

/* Styles for the fullscreen image */
.fullscreen-image {
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Common styles for close, prev, and next buttons */
.close-btn,
.prev-btn,
.next-btn {
    color: #ff9900;
    font-size: 24px;
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease; /* Add smooth transition for transform and color */
}

/* Styles for the close button */
.close-btn {
    top: 10px;
    right: 20px;
}

.close-btn:hover {
    transform: scale(1.2); /* Add a slight scale effect on hover */
}

/* Styles for prev and next buttons */
.prev-btn {
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
}

.next-btn {
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
}

/* Background color change on button hover */
.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(255, 153, 0, 0.7);
}

/* Close button hover effect */
.close-btn:hover {
    color: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .close-btn,
    .prev-btn,
    .next-btn {
        font-size: 20px; /* Decrease font size for smaller screens */
    }
}


/* Styles for the close button with FontAwesome icon */
.close-btn {
    top: 10px;
    right: 20px;
}

/* Styles for prev button with Material Icons */
.prev-btn {
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
}

/* Styles for next button with Material Icons */
.next-btn {
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
}

/* Material Icons for buttons */
.close-btn::before {
    content: "close"; /* Material Icons close icon */
    font-family: 'Material Icons';
}

.prev-btn::before {
    content: "chevron_left"; /* Material Icons left arrow icon */
    font-family: 'Material Icons';
}

.next-btn::before {
    content: "chevron_right"; /* Material Icons right arrow icon */
    font-family: 'Material Icons';
}
