/*
 * Friends of Maldives - Modern Responsive CSS
 * Clean, semantic layout using Flexbox
 */

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Verdana, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    background: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #3366CC;
    text-decoration: none;
}

a:hover {
    color: #5588AA;
    text-decoration: underline;
}

.clear {
    clear: both;
}

/* ===================================
   LAYOUT CONTAINERS
   =================================== */

#wrapper {
    width: 100%;
}

#outer-wrapper {
    border-bottom: 6px solid #000000;
}

#contentwrap {
    width: 100%;
    max-width: 980px;
    margin: 10px auto 0;
    padding: 20px 15px 0;
}

/* ===================================
   HEADER
   =================================== */

#header {
    background: url("../images/fom-banner.jpg") no-repeat right 0 white;
    background-size: contain;
    padding: 0;
}

#logo {
    display: block;
    max-width: 124px;
    padding: 0;
}

.logoimg {
    width: 100%;
    height: auto;
}

/* ===================================
   NAVIGATION - MOBILE FIRST
   =================================== */

#navcontainer {
    background: url("../images/menu.png") repeat-x 0 0 transparent;
    width: 100%;
}

.menu-toggle {
    display: block;
    background: #2E6591;
    color: #FFFFFF;
    padding: 12px 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
    text-shadow: 0 1px 0 #000000;
}

.menu-toggle::before {
    content: "☰ ";
    font-size: 18px;
    margin-right: 8px;
}

.menu-toggle:hover {
    background: #4384BB;
}

#pagemenucontainer {
    display: none;
    width: 100%;
}

#pagemenucontainer.active {
    display: block;
}

#pagemenu {
    list-style: none;
}

#pagemenu li {
    border-bottom: 1px solid #2E6591;
}

#pagemenu li a {
    color: #FFFFFF;
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 14px 20px;
    text-decoration: none;
    text-shadow: 0 1px 0 #000000;
    background: #3E6B8D;
}

#pagemenu li a:hover {
    background: #2E6591;
}

#pagemenu li.active a {
    background: #2E6591;
    border-left: 5px solid #94CE18;
}

/* ===================================
   MAIN CONTENT - MOBILE FIRST
   =================================== */

.front-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.featured-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-block h2 {
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    padding: 0 0 5px 0;
    color: #000000;
    border-bottom: 3px solid #94CE18;
    display: inline-block;
}

.featured-block a {
    display: block;
}

.featured-block img {
    width: 100%;
    height: auto;
}

/* ===================================
   PAGE CONTENT LAYOUT
   =================================== */

.page-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.main-content {
    flex: 1;
}

.main-content h1 {
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    color: #000000;
    border-bottom: 3px solid #94CE18;
}

.page-body {
    line-height: 1.6;
}

.page-body p {
    margin-bottom: 15px;
}

.content-image-left {
    float: left;
    margin: 0 12px 5px 0;
    max-width: 100px;
    height: auto;
}

.content-image-right {
    float: right;
    margin: 0 0 5px 12px;
    max-width: 100px;
    height: auto;
}

/* Democracy Page Styles */
.democracy-page {
    padding: 20px;
}

.democracy-page h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.democracy-highlights-top {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.democracy-highlight-box {
    flex: 1;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.democracy-highlight-box img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.democracy-highlight-box h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}

.democracy-highlight-box p {
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.democracy-intro-content {
    margin-bottom: 30px;
}

.celebrities-campaign-box {
    float: right;
    width: 200px;
    padding: 15px;
    margin: 0 0 15px 15px;
    background: #FFF8DC;
    border: 2px solid #DAA520;
    text-align: center;
}

.celebrities-campaign-box img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.celebrities-campaign-box p {
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0;
}

.celebrities-campaign-box a {
    color: #3366CC;
    text-decoration: underline;
}

.democracy-intro-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.democracy-intro-content a {
    color: #3366CC;
    text-decoration: underline;
}

.democracy-intro-content a:hover {
    color: #4384BB;
}

/* Yellow/Beige Highlight Box in Democracy Page */
.democracy-yellow-box {
    display: flex;
    gap: 15px;
    background: #FFF8DC;
    border: 2px solid #DAA520;
    padding: 15px;
    margin: 20px 0;
    align-items: flex-start;
}

.yellow-box-logo {
    flex-shrink: 0;
}

.yellow-box-logo img {
    width: 80px;
    height: auto;
}

.yellow-box-content {
    flex: 1;
}

.yellow-box-content p {
    margin: 5px 0;
    line-height: 1.5;
}

.yellow-box-content p:first-child {
    font-weight: bold;
    margin-bottom: 8px;
}

.democracy-updates-bottom {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.democracy-update-full {
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #3366CC;
}

.democracy-update-full h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.democracy-update-full p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.democracy-update-item {
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
}

.democracy-update-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.democracy-update-item p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.file-attachment {
    margin: 8px 0;
}

.file-attachment a {
    color: #3366CC;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-attachment a:hover {
    text-decoration: underline;
}

.file-icon {
    font-size: 16px;
}

/* Mobile responsiveness for democracy page */
@media (max-width: 767px) {
    .democracy-highlights-top {
        flex-direction: column;
    }

    .democracy-images-grid {
        grid-template-columns: 1fr;
    }

    .democracy-page {
        padding: 10px;
    }
}

/* ===================================
   SIDEBAR
   =================================== */

.sidebar h2 {
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 10px;
    padding: 8px 10px;
    background: #F5F5F5;
    border-left: 4px solid #3E6B8D;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 5px 10px;
    border-bottom: 1px dotted #DDDDDD;
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: #3366CC;
    text-decoration: none;
}

.sidebar a:hover {
    color: #5588AA;
    text-decoration: underline;
}

/* External link icon */
.sidebar a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233366CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

#social-media-block a[target="_blank"]::after {
    content: none !important;
}

#social-media-block {
    text-align: center;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#social-media-block a {
    display: block;
    transition: transform 0.2s ease;
    text-decoration: none;
}

#social-media-block a:hover {
    transform: scale(1.1);
}

#social-media-block img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    border-bottom: 6px solid #94CE18;
    padding: 15px;
    margin: 20px auto 0;
    text-align: center;
}

#credits {
    color: #444444;
    font-size: 11px;
    margin-bottom: 5px;
}

#footer {
    color: #333333;
    font-size: 13px;
}

.footer a {
    color: #3366CC;
}

.footer a:hover {
    color: #5588AA;
}

/* ===================================
   TABLET (768px+)
   =================================== */

@media screen and (min-width: 768px) {
    #header {
        padding: 0;
    }

    #logo {
        max-width: 232px;
        padding: 10px 0;
    }

    #contentwrap {
        padding: 20px;
    }

    .featured-sections {
        flex-direction: row;
        gap: 15px;
    }

    .featured-block {
        flex: 1;
    }
}

/* ===================================
   DESKTOP (1024px+)
   =================================== */

@media screen and (min-width: 1024px) {
    /* Hide mobile menu toggle */
    .menu-toggle {
        display: none;
    }

    /* Show desktop menu */
    #pagemenucontainer {
        display: flex !important;
        justify-content: flex-start;
    }

    #pagemenu {
        display: flex;
        list-style: none;
    }

    #pagemenu li {
        border-bottom: none;
        border-left: 1px solid #000000;
    }

    #pagemenu li:first-child {
        border-left: none;
    }

    #pagemenu li a {
        padding: 14px 20px 11px;
        font-size: 12px;
        background: transparent;
    }

    #pagemenu li a:hover,
    #pagemenu li.active a {
        background: transparent;
        border-bottom: 5px solid #94CE18;
        border-left: none;
    }

    /* Desktop layout - 980px centered */
    #header {
        width: 980px;
        margin: 0 auto;
        padding: 0;
        background: url("../images/fom-banner.jpg") no-repeat right 0 white;
    }

    #logo {
        width: 232px;
        height: 150px;
    }

    #navcontainer {
        width: 980px;
        margin: 0 auto;
    }

    #contentwrap {
        width: 980px;
        padding: 20px 0 0;
    }

    #outer-wrapper {
        width: 980px;
        margin: 0 auto;
    }

    /* Desktop three-column layout */
    .front-content {
        flex-direction: row;
        gap: 10px;
        align-items: flex-start;
    }

    .featured-sections {
        flex-direction: row;
        gap: 10px;
        flex: 1;
        max-width: 770px;
    }

    .featured-block {
        width: 380px;
    }

    /* Desktop page layout (with sidebar) */
    .page-content {
        flex-direction: row;
        gap: 10px;
        align-items: flex-start;
    }

    .main-content {
        flex: 1;
        max-width: 770px;
    }

    .democracy-page {
        flex: 1;
        max-width: 770px;
    }

    .rightsidebar {
        width: 200px;
        flex-shrink: 0;
    }

    .sidebar {
        font-size: 12px;
    }

    .sidebar a {
        font-size: 12px;
    }

    #social-media-block {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    /* Footer */
    .footer {
        width: 980px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 10px 0 6px;
    }

    #credits {
        margin-bottom: 0;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

*:focus {
    outline: 2px solid #4384BB;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   HOW CAN YOU HELP PAGE
   =================================== */

.help-section {
    margin-bottom: 30px;
}

.help-section h2 {
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3E6B8D;
}

.campaign-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.campaign-box {
    background: #F9F9F9;
    padding: 15px;
    border: 1px solid #DDD;
    box-sizing: border-box;
    min-width: 0;
}

.campaign-box img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.campaign-box h3 {
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.campaign-box h3 a {
    color: #3366CC;
    text-decoration: none;
}

.campaign-box h3 a:hover {
    color: #5588AA;
    text-decoration: underline;
}

.campaign-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.campaign-box p a {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Volunteer Section */
.volunteer-section {
    clear: both;
}

.volunteer-opportunity {
    background: #FFF;
}

.volunteer-banner {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.volunteer-content {
    position: relative;
    padding: 20px 0;
}

.emblem-image {
    float: right;
    width: 100px;
    height: 105px;
    margin: 0 0 15px 15px;
}

.volunteer-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0 20px;
    line-height: 1.2;
}

.volunteer-content h4 {
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: #333;
}

.volunteer-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.placement-info {
    text-align: center;
    font-size: 16px;
    margin: 20px 0;
}

.package-info {
    text-align: center;
    font-size: 14px;
    margin: 20px 0;
    padding: 15px;
    background: #F5F5F5;
}

.join-us {
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
}

.contact-info {
    text-align: center;
    font-size: 14px;
    margin: 20px 0;
}

.contact-info a {
    color: #3366CC;
    text-decoration: none;
}

.contact-info a:hover {
    color: #5588AA;
    text-decoration: underline;
}

.no-campaigns {
    font-size: 14px;
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

/* ===================================
   DOCUMENT LISTING PAGES
   =================================== */

.document-list {
    margin-top: 20px;
}

.document-item {
    padding: 15px 0;
    border-bottom: 1px dotted #DDDDDD;
}

.document-item:last-child {
    border-bottom: none;
}

.document-item h3 {
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #333;
}

.document-date {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin: 5px 0;
}

.document-link {
    margin: 8px 0 0 0;
}

.document-link a {
    color: #3366CC;
    text-decoration: none;
    font-size: 14px;
}

.document-link a:hover {
    color: #5588AA;
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .campaign-boxes {
        grid-template-columns: 1fr;
    }

    .volunteer-title {
        font-size: 24px;
    }

    .volunteer-content h4 {
        font-size: 20px;
    }

    .emblem-image {
        float: none;
        display: block;
        margin: 0 auto 15px;
    }
}

/* ===================================
   NEWS PAGE STYLES
   =================================== */

/* Loading and error messages */
.loading-indicator,
.error-message {
    padding: 30px 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.error-message {
    color: #c00;
}

/* News list container */
.news-list {
    margin-bottom: 30px;
}

/* Individual news article card */
.news-article {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.news-article:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* News thumbnail */
.news-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
}

/* News content area */
.news-content {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
}

.news-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.news-content h3 a {
    color: #3366CC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-content h3 a:hover {
    color: #4384BB;
    text-decoration: underline;
}

/* News date */
.news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    font-style: italic;
}

/* News details (excerpt) */
.news-details {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 10px 0;
}

/* External URL link */
.news-url {
    margin-top: 10px;
    font-size: 13px;
}

.news-url a {
    color: #666;
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
}

.news-url a:hover {
    color: #3366CC;
    text-decoration: underline;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* ===================================
   PAGINATION STYLES
   =================================== */

.pagination {
    margin-top: 30px;
    margin-bottom: 20px;
}

.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.pagination-button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.pagination-button:hover {
    background: #f5f5f5;
    border-color: #3366CC;
    color: #3366CC;
}

.pagination-button.pagination-active {
    background: #3366CC;
    color: #fff;
    border-color: #3366CC;
    font-weight: bold;
    cursor: default;
}

.pagination-button.pagination-disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.pagination-ellipsis {
    padding: 8px 5px;
    color: #999;
    font-size: 14px;
}

.pagination-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* ===================================
   NEWS PAGE - RESPONSIVE
   =================================== */

@media (max-width: 767px) {
    /* Stack news article vertically on mobile */
    .news-article {
        flex-direction: column;
        gap: 10px;
    }

    .news-thumbnail {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    .news-details {
        font-size: 14px;
    }

    /* Smaller pagination buttons on mobile */
    .pagination-button {
        padding: 6px 10px;
        font-size: 13px;
    }

    .pagination-controls {
        gap: 5px;
    }

    .pagination-info {
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet adjustments */
    .news-thumbnail {
        width: 100px;
        height: 100px;
    }

    .news-content h3 {
        font-size: 17px;
    }
}

/* ===================================
   GALLERY PAGE STYLES
   =================================== */

/* Gallery grid layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Gallery item card */
.gallery-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Gallery link */
.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

/* Gallery image container */
.gallery-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: #f5f5f5;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery title */
.gallery-title {
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    color: #333;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Album badge (photo count) */
.gallery-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* Video play icon overlay */
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-item:hover .video-play-icon {
    background: rgba(51, 102, 204, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
}

.breadcrumb a {
    color: #3366CC;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Album info */
.album-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===================================
   LIGHTBOX STYLES
   =================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 150px);
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 20px;
    margin-top: 10px;
    border-radius: 4px;
    text-align: center;
    max-width: 100%;
}

.lightbox-caption h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
}

.lightbox-caption p {
    margin: 5px 0;
    font-size: 14px;
}

/* Lightbox buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10001;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ===================================
   GALLERY - RESPONSIVE
   =================================== */

@media (max-width: 767px) {
    /* Single column on mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-title {
        font-size: 16px;
        min-height: auto;
    }

    /* Lightbox adjustments */
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption h3 {
        font-size: 16px;
    }

    .lightbox-caption p {
        font-size: 13px;
    }

    .video-play-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Two columns on tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Three columns on desktop for main content area */
    .main-content .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
