/* General Settings */
:root {
    --pr-color: #fff;
    --second-color: #0a0a0a;
    --highlight-color: #4b4b4b;
    --fz-big: 60px;
}

* {
    box-sizing: border-box;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    margin: 0;
    padding: 0;
    font-feature-settings: 'pnum' on, 'lnum' on;
}

body {
    background: var(--second-color);
    color: var(--pr-color);
}

section {
    padding-top: 150px;
    padding-bottom: 50px;
}

.wrapp {
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: 1;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 40px;
    padding: 0 50px;
}

.grid-item {
    background-color: var(--second-color);
    padding: 35px;
    border: 1px solid var(--highlight-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 590px; /* Increased height of each box */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures content is spread across the box */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.grid-item:hover {
    background-color: #333;
    transform: scale(1.05);
}

.grid-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Smooth transition for image */
}

.grid-item:hover img {
    transform: scale(1.2); /* Scale image to fill the screen */
}

.section-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--pr-color);
}

.section-content {
    font-size: 16px;
    color: #b5b5b5;
    line-height: 1.5;
    flex-grow: 1; /* Ensures content can expand within the box */
}

.header {
    text-align: center;
}

.title {
    font-size: 85px;
    color: var(--pr-color);
    text-transform: uppercase;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.footer__div {
    font-size: 70px;
    letter-spacing: 15px;
    color: var(--pr-color);
    text-transform: uppercase;
}

.top-left-links {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
}

.top-left-links a img {
    width: 25px;
    height: 25px;
}

/* Wrapper and containers for images */
.image-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9; /* Ensures images maintain their original aspect ratio */
    border-radius: 8px;
    cursor: pointer;
    opacity: 50%;
}

.image-container img {
    width: 95%; /* Slightly smaller width */
    height: 90%; /* Slightly smaller height */
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain; /* Ensures the full image is visible without cropping */
    transition: transform 0.3s ease;
}

/* Text overlay */
.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    z-index: 10;
    pointer-events: none; /* Allows clicks to pass through to the image */
    opacity: 0;
    transition: opacity 0.3s ease;
    opacity: 50%;
}

/* Show text overlay on hover */
.image-container:hover .image-overlay {
    opacity: 1;
}

/* Zoom overlay */
#zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#zoom-overlay.visible {
    visibility: visible;
    opacity: 1;
}

#zoomed-image {
    max-width: 90%;
    max-height: 90%;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

/* Close button */
.close-button {
    position: absolute;
    top: 20px;
    right: 175px;
    background: #4b4b4b;
    color: #000;
    border: none;
    font-size: 24px;
    font-weight: bold;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1100;
}



