/*
 * Bodyscape Gallery - Minimal Static CSS
 * No JavaScript - Pure HTML/CSS Gallery
 */

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Skip to main content link */
.skip-to-main-content {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 10px 20px;
    background: #4a90e2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.skip-to-main-content:focus {
    left: 0;
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #fff;
    background: #000;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-push-6 {
        margin-left: 50%;
    }
    .col-md-pull-6 {
        margin-right: 50%;
    }
}

/* ==========================================================================
   DARK HEADER (portfolio pages with black backgrounds)
   ========================================================================== */

#header {
    background-color: #111;
}
#header.header-filled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.tt-menu-nav > li > a,
.tt-submenu-label {
    color: #fff;
}
.tt-menu-nav > li > a:hover {
    color: #ccc;
}
#tt-m-menu-toggle-btn span,
#tt-m-menu-toggle-btn span:before,
#tt-m-menu-toggle-btn span:after {
    background-color: #fff;
}

/* Swap to light logo */
#logo .logo-dark {
    display: none !important;
}
#logo .logo-light {
    display: inline-block !important;
}
@media (max-width: 991px) {
    #logo .logo-dark-m {
        display: none !important;
    }
    #logo .logo-light-m {
        display: inline-block !important;
    }
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

#page-header {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 25%;
}

@media (max-width: 767px) {
 
    .page-header-image {background-position: 85% 25%};
}

.cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-transparent-5-dark {
    background: rgba(0, 0, 0, 0.5);
}

.page-header-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-header-caption {
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.page-header-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-header-category {
    margin: 20px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-header-category a {
    background: rgba(0, 0, 0, 0.75);
    padding: 6px 14px;
    border-radius: 4px;
    margin: 0 4px;
    display: inline-block;
}

.page-header-description {
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin: 20px auto;
    opacity: 0.9;
}

.gallery-single-nav {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 20px;
    z-index: 3;
}

.gallery-single-nav a {
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.gallery-single-nav a:hover {
    background: rgba(74, 144, 226, 0.8);
}

.gallery-single-nav.modal-open {
    display: none;
}

@media (max-width: 767px) {
    .page-header-title {
        font-size: 32px;
    }

    .gallery-single-nav {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

#gallery-single-section {
    padding: 60px 0;
    background: #000;
}

.isotope {
    margin: 0;
    padding: 0 15px;
}

/* Masonry layout using JavaScript positioning */
.isotope-items-wrap {
    position: relative;
    width: 100%;
}

.isotope-item {
    position: absolute;
    width: calc(25% - 23px);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* Responsive masonry columns */
@media (max-width: 1200px) {
    .isotope-item {
        width: calc(33.333% - 17px);
        margin-bottom: 25px;
    }
}

@media (max-width: 991px) {
    .isotope-item {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .isotope-item {
        width: 100%;
        margin-bottom: 20px;
    }
}

.gallery-single-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-single-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.gallery-single-item:hover img {
    transform: scale(1.05);
}

/* Ensure thumbnails maintain aspect ratio */
.gs-item-image {
    display: block;
    width: 100%;
    height: auto;
}

.gsi-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-single-item:hover .gsi-image-caption {
    opacity: 1;
}



/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer {
    background: #000;
    color: #fff;
    padding: 40px 0;
    border-top: 1px solid #333;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-copyright p {
    margin: 5px 0;
}

.social-buttons ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.social-buttons li {
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
}

.btn-social-min {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center {
    text-align: center;
}

.margin-top-20 {
    margin-top: 20px;
}

.margin-top-40 {
    margin-top: 40px;
}

.btn-primary {
    background: #4a90e2;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-link {
    background: transparent;
    color: #fff;
}

.btn-default {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

#modal-box-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#modal-box-header.modal-open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-header .close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.modal-header .close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.tt-close-btn:before {
    content: '×';
}

.modal-body {
    padding: 0;
    position: relative;
}

.modal-body .bg-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.modal-body-content {
    padding: 40px 30px;
    color: #fff;
}

.tt-heading-lg .tt-heading-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ph-more-info-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(74, 144, 226, 0.2);
    border: 2px solid #4a90e2;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 80px;
    transition: all 0.3s ease;
}

.ph-more-info-trigger:hover {
    background: rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

/* Mobile spacing for trigger button */
@media (max-width: 767px) {
    .ph-more-info-trigger {
        margin-bottom: 100px;
    }
}

.ph-more-info-trigger-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #4a90e2;
    border-radius: 50%;
    position: relative;
}

.ph-more-info-trigger-icon:before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    line-height: 1;
}

body.modal-active {
    overflow: hidden;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .modal-dialog {
        width: 95%;
        margin: 20px auto;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body .bg-image {
        height: 200px;
    }

    .modal-body-content {
        padding: 30px 20px;
    }

    .tt-heading-lg .tt-heading-title {
        font-size: 24px;
    }

    .ph-more-info-trigger {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .modal-content {
        border-radius: 0;
    }

    .modal-body-content {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
    .social-buttons ul {
        justify-content: center;
    }

    .footer-copyright {
        text-align: center;
    }
}
