/* ============================ CITY/GALLERY PAGE SHARED STYLES ============================ */

/* ==================================================
Global
================================================== */
* {
    box-sizing: border-box;
}

.container {
    padding: 10px 10px;
}

.column {
    flex: 25%; /* 4 columns by default */
}

img.hover-shadow {
    transition: 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2),
                0 6px 20px rgba(0,0,0,1);
}

img {
    margin-bottom: 5px;
}

/* ==================================================
Header Styles
================================================== */
.header {
    text-align: center;
    padding: 30px 20px;
}

.header p {
    margin: 5px 0;
}

.header .btn {
    background-color: #6072FE;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.header .btn:hover {
    background-color: #9D7AC7;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header .btn.active {
    background-color: #007bff;
}

/* ==================================================
Row/Grid Layout
================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

/* ==================================================
MODAL OVERLAY
================================================== */
.modal1 {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
}

/* ==================================================
MODAL FRAME
================================================== */
.modal1-content {
    position: relative;
    background: black;
    padding: 40px;
    border-radius: 8px;
    width: 90vw;
    height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.modal1-content::-webkit-scrollbar {
    display: none;
}

/* ==================================================
SLIDES
================================================== */
.slide1 {
    display: none;
    width: 100%;
    height: 98%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* ==================================================
IMAGE WRAPPER
================================================== */
.modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ==================================================
ARROWS
================================================== */
.prev-btn1,
.next-btn1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    z-index: 10;
}

.prev-btn1 { left: -25px; }
.next-btn1 { right: -25px; }

.prev-btn1:hover,
.next-btn1:hover {
    color: #ffcc00;
    transform: translateY(-50%) scale(1.2);
}

/* ==================================================
NUMBER TEXT
================================================== */
.numbertext {
    position: absolute;
    top: 10px;
    left: 20px;
    color: white;
    font-size: 14px;
}

/* ==================================================
CLOSE BUTTON
================================================== */
.close-btn1 {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 9999;
}

.close-btn1:hover {
    color: red;
}

/* ==================================================
CAPTION
================================================== */
.caption-container {
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-family: Garamond, serif;
    color: white;
    font-size: 18px;
    padding: 12px 20px;
    margin-top: 10px;
    border-top: 1px solid #444;
    background-color: #222;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 40px;
}

/* ==================================================
Thumbnails (if used)
================================================== */
.demo1 {
    opacity: 0.6;
}

.active,
.demo1:hover {
    opacity: 1;
}

/* ==================================================
Page Loading Animation
================================================== */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* ==================================================
Column Responsive
================================================== */
.column {
    padding: 5px;
}

/* Responsive column widths */
@media screen and (max-width: 900px) {
    .column {
        flex: 50%;
    }
}

@media screen and (max-width: 600px) {
    .column {
        flex: 100%;
    }
}