.tba-category .tba-wrapper{
    margin:40px auto 0
}
.tba-category-hero{
    max-width:1440px;
    margin:0 auto;
    width:100%;
    min-height:630px;
    position:relative
}
.tba-category-hero .tba-wrapper{
    margin:0 auto
}
.tba-category .category-label{
    background:url(https://www.theblondeabroad.com/wp-content/themes/tba/images/City-Labels.png) no-repeat;
    background-size:280px 90px;
    position:absolute;
    /*top:-30px;*/
    left:0;
    right:0;
    margin:0 auto;
    width:280px;
    height:90px
}
.tba-category .category-label h1{
    font-size:21px;
    color:#fff;
    text-transform:uppercase;
    text-align:center;
    font-family:jules_biglight;
    margin:0;
    font-weight:400;
    line-height:70px;

    @media only screen and (min-width: 320px) and (max-width: 615px) {
        line-height: 70px;
    }

}
.tba-category .category-label h4{
    font-size:9px;
    color:#737373;
    text-transform:uppercase;
    text-align:center;
    margin:6px 0 0
}
.tba-category .tba-header-category{
    background:#fff;
    padding:70px 20px 20px;
    width:615px;
    height:295px;
    box-shadow:0 0 0 1px #e3c9b6 inset;
    border:10px solid #fff;
    position:absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
    margin:auto;

    @media only screen and (min-width: 320px) and (max-width: 615px) {
        width: fit-content;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 12px;
    }
}
.tba-category .tba-header-category p{
    line-height:24px;
    font-size:14px;
    color:#737373;
    text-align:center
}

.gallery-heading {
    font-family: 'saturday_scriptregular';
    font-size: 64px;
    color: #73736f;
    text-align: center;
    font-weight: 400;
    margin: 20px 0 40px;
    position: relative;
    z-index: 10;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    padding: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 377px);
    gap: 8px;
    max-width: 1172px;
    margin: 0 auto;
    justify-content: center;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
    line-height: 0;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.4s ease;
}

.grid-item img:hover {
    transform: scale(1.05);
}

/* Landscape and Portrait sizes */
.landscape img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.portrait img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

/* Desktop Layout */
/* First Row: Tall | Two-short | Tall */
.div1 {
    grid-area: 1 / 1 / 3 / 2;
    height: 540px;
}
.div2 {
    grid-area: 1 / 2 / 2 / 3;
    height: 270px;
}
.div3 {
    grid-area: 2 / 2 / 3 / 3;
    height: 270px;
}
.div4 {
    grid-area: 1 / 3 / 3 / 4;
    height: 540px;
}

/* Second Row: Two-short | Tall | Tall */
.div5 {
    grid-area: 3 / 1 / 4 / 2;
    height: 270px;
}
.div6 {
    grid-area: 4 / 1 / 5 / 2;
    height: 270px;
}
.div7 {
    grid-area: 3 / 2 / 5 / 3;
    height: 540px;
}
.div8 {
    grid-area: 3 / 3 / 5 / 4;
    height: 540px;
}

/* Third Row: Tall | Tall | Two-short */
.div9 {
    grid-area: 5 / 1 / 7 / 2;
    height: 540px;
}
.div10 {
    grid-area: 5 / 2 / 7 / 3;
    height: 540px;
}
.div11 {
    grid-area: 5 / 3 / 6 / 4;
    height: 270px;
}
.div12 {
    grid-area: 6 / 3 / 7 / 4;
    height: 270px;
}

/* Tablet View - Two Columns */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 15px;
        padding: 15px;
    }

    /* Reset all grid positions for 2-column layout */
    .grid-item {
        grid-area: auto !important;
    }

    /* Adjust heights proportionally for smaller screens */
    .div1, .div4, .div7, .div8, .div9, .div10 {
        height: auto;
        /*aspect-ratio: 377/540;*/
    }

    .div2, .div3, .div5, .div6, .div11, .div12 {
        height: auto;
        /*aspect-ratio: 377/270;*/
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    display: none;
}
