h2 {
    text-align: center;
    margin-bottom: 40px;
}
.gallery-container {
    padding: 171px 0;
}
.main-display {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}
.main-display img {
    max-width: 60%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.thumbnail-bar {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}
.thumbnail-bar img {
    height: 80px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, border 0.3s;
    border: 3px solid transparent;
}
.thumbnail-bar img:hover {
    transform: scale(1.1);
}
.thumbnail-bar .active-thumb {
    border: 3px solid #4CAF50;
}
.back-button {
    text-align: center;
    margin-top: 40px;
}
.back-button a {
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    background-color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
}
.back-button a:hover {
    background-color:rgb(200, 216, 230);
}
.arrow {
    position: absolute;
    top: 50%;
    font-size: 36px;
    color: black;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 50%;
    transform: translateY(-50%);
}
.arrow.left {
    left: 20px;
}
.arrow.right {
    right: 20px;
}
body.dark-mode .arrow {
    color: #fff !important;
} 