.picture-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 10px; /* Space between images */
    width: 100%;
    margin: auto;
    background: white;
    padding: 10px;
}

.picture-block-2x1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 10px; /* Space between images */
    width: 100%;
    margin: auto;
    background: white;
    padding: 10px;
}

.picture-block-3x1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 10px; /* Space between images */
    width: 100%;
    margin: auto;
    background: white;
    padding: 10px;
}

.picture-block-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 2fr); /* 2 equal columns */
    gap: 10px; /* Space between images */
    width: 100%;
    margin: auto;
    background: white;
    padding: 10px;
}

.picture-block-2x4 {
    display: grid;
    grid-template-columns: repeat(2, 4fr); /* 2 equal columns */
    gap: 10px; /* Space between images */
    width: 100%;
    margin: auto;
    background: white;
    padding: 10px;
}

.picture-block-2x6 {
    display: grid;
    grid-template-columns: repeat(2, 6fr); /* 2 equal columns */
    gap: 10px; /* Space between images */
    width: 100%;
    margin: auto;
    background: white;
    padding: 10px;
}

.picture-block-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 3fr); /* 3 equal columns */
    gap: 10px; /* Space between images */
    width: 100%;
    margin: auto;
    background: white;
    padding: 10px;
}

.picture-block-3x4 {
    display: grid;
    grid-template-columns: repeat(3, 3fr); /* 3 equal columns */
    gap: 10px; /* Space between images */
    width: 100%;
    margin: auto;
    background: white;
    padding: 10px;
}

.picture-container {
    text-align: center; /* Center-aligns text below the image */
    color: #ccc;
}

.picture-container img {
    width: 100%; /* Each image fills its grid column */
    aspect-ratio: 1 / 1; /* Ensures square dimensions */
    background: white;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.picture-container img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.picture-container .italic-text {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.8em; /* Slightly smaller text */
}

.master {
    font-style: italic;
    font-size: 0.8em; /* 80% of the main text size */
    color: #8e8e8e; /* Subtle gray color for professionalism */
    display: inline-block; /* Ensures it aligns neatly with other elements */
    margin-top: 5px; /* Optional spacing from the main text */
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform: scale(1); /* Default state */
    transform-origin: center; /* Default origin */
    transition: transform 0.3s ease; /* Smooth zoom transitions */
    cursor: zoom-in; /* Indicates zooming capability */
}

.lightbox.show {
    display: flex; /* Show lightbox when active */
}

.lightbox .close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    font-size: 1.2em;
    font-weight: bold;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    z-index: 1001;
}

.lightbox .close:hover {
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
}

.responsive-image-container {
    max-width: 50%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.responsive-image-container-large {
    max-width: 80%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.responsive-image-container-small {
    max-width: 30%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsive-image-container:hover .responsive-image {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.responsive-image-container-XXL {
    width: 100%; /* Ensures the container spans the full width of the page */
    max-width: 100%; /* Ensures no overflow beyond the page width */
    margin: 20px auto; /* Adds spacing around the container */
    overflow: hidden; /* Prevents content overflow */
    border-radius: 16px; /* Smooth rounded corners for a modern look */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Modern shadow effect */
    display: flex; /* Allows centering of content */
    align-items: center; /* Vertically centers content */
    justify-content: center; /* Horizontally centers content */
    background: linear-gradient(135deg, #f3f4f6, #e0e3e7); /* Subtle gradient background for a modern feel */
    position: relative; /* Ensures positioning for overlays */
}

.responsive-image-container-XXL img {
    width: 100%; /* Makes the image responsive */
    height: auto; /* Maintains aspect ratio */
    object-fit: cover; /* Ensures the image covers the container without distortion */
    display: block; /* Removes inline spacing for images */
    border-radius: 16px; /* Matches the container's rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.responsive-image-container-XXL:hover img {
    transform: scale(1.03); /* Slight zoom on hover */
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

.responsive-image-container-XXL::before {
    content: ''; /* Creates a pseudo-element overlay */
    position: absolute; /* Positioned over the image */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Subtle dark overlay */
    border-radius: 16px; /* Matches the container's rounded corners */
    z-index: 1; /* Ensures it overlays the image */
    transition: background 0.3s ease; /* Smooth hover effect */
}

.responsive-image-container-XXL:hover::before {
    background: rgba(0, 0, 0, 0.2); /* Slightly darker overlay on hover */
}

.ie-panel {
    display: none;
    background: #212121;
    padding: 10px 0;
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, .3);
    text-align: center;
}
