/* =========================================================
   Mehr Family New Structured Site
   Clean Main CSS
   ========================================================= */


/* =========================================================
   1. Base
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background: #f6f9fc;
    color: #1f2937;
    font-style: italic;
}

a {
    text-decoration: none;
}


/* =========================================================
   2. Header + Hover Dropdown Menu
   ========================================================= */

.site-header {
    background: #0d86f9;
    margin: 0;
    padding: 16px 22px;
    min-height: 80px;
    position: relative;
    z-index: 200;
}

.menu-hover-zone {
    display: inline-block;
    position: relative;
    padding-bottom: 25px;
}

.site-title {
    color: #ffffff;
    font-size: 34px;
    padding: 5px;
    font-weight: 700;
    font-style: italic;
    white-space: nowrap;
    display: inline-block;
}

.old-style-menu {
    display: none !important;
    position: absolute;
    top: 55px;
    left: -25px;
    width: 295px;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    z-index: 9999;
}

.menu-hover-zone:hover .old-style-menu {
    display: block !important;
}

.old-style-menu a {
    display: block;
    padding: 15px 14px;
    color: #111827;
    font-size: 18px;
    line-height: 1.4;
    background: #ffffff;
}

.old-style-menu a:hover {
    background: #0d86f9;
    color: #ffffff;
}


/* =========================================================
   3. Main Layout
   ========================================================= */

.site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/* =========================================================
   4. Top 4 Photos
   ========================================================= */

.top-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 6px 0 8px 0;
    background: #ffffff;
    border-bottom: 18px solid #e7f3ff;
}

.photo-card {
    background: #ffffff;
    border: 1px solid #22c55e;
    border-radius: 5px;
    padding: 4px;
    width: fit-content;
    justify-self: center;
}

.photo-left {
    justify-self: start;
}

.photo-right {
    justify-self: end;
}

.photo-card img {
    height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}


/* =========================================================
   5. Photo Zoom Overlay
   ========================================================= */

.photo-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.90);
    display: none;
    align-items: center;
    justify-content: center;
}

.photo-zoom-modal.active {
    display: flex;
}

.photo-zoom-modal img {
    max-width: 80vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-out;
    animation-name: oldZoom;
    animation-duration: 0.65s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

@keyframes oldZoom {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================================================
   6. Quote Section
   ========================================================= */

.quote-section {
    background: #e6f2ff;
    padding: 8px 8px;
    font-size: 16px;
    min-height: 92px;
}

.quote-section p {
    margin: 0 0 18px 0;
}

.quote-author,
#quote-author {
    padding-left: 60px;
    color: #6b7280;
}


/* =========================================================
   7. Left Links + Right Sidebar Layout Website Style
   ========================================================= */

.info-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 0;
    width: 100%;
    max-width: none;
    margin-top: 20px;
    padding: 0 0 30px 0;
    background: #ffffff;
    align-items: start;
}

/* Left column */
.links-column {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-left: 10px;
    padding-right: 25px;
}

/* Right column fixed to right edge */
.sidebar-column {
    width: 350px;
    max-width: 350px;
    min-width: 350px;
    margin-top: 0px;
    padding: 0;
    justify-self: end;
    align-self: start;
}


/* =========================================================
   8. Link Cards
   ========================================================= */

.link-card {
    background: transparent;
    padding: 0;
    margin: 0 0 24px 0;
    box-shadow: none;
    border-radius: 0;
}

.link-card h2 {
    font-size: 16px;
    font-weight: 300;
    font-style: italic;
    color: #111827;
    margin: 0 0 6px 0;
}

.link-list {
    line-height: 1.55;
}

.link-list a {
    color: #006dff;
    font-size: 15px;
    font-weight: 300;
    font-style: italic;
    text-decoration: none;
}

.link-list a:hover {
    text-decoration: underline;
}


/* =========================================================
   9. Right Sidebar Cards
   Similar to old .SideBar_quote1
   ========================================================= */

.sidebar-card {
    width: 100%;
    background-color: #e6f2ff;
    margin: 0 0 16px 0;
    padding: 6.2px;
    border-radius: 0;
    box-shadow: none;
    font-size: 15px;
    font-weight: 300;
    font-style: italic;
    color: #111827;
}

.sidebar-card h2 {
    font-size: 15px;
    font-weight: 300;
    font-style: italic;
    margin: 0 0 6px 0;
    padding: 0;
    color: #111827;
}

.sidebar-card p,
.sidebar-card blockquote {
    font-size: 15px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    
    padding: 0;
}


/* =========================================================
   10. Rothko Weather
   ========================================================= */

/* Rothko Weather image - no stretch, fixed fit size */
#weatherImage {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;

    /* image বড় হলেও এই size-এর বেশি হবে না */
    max-width: 700px !important;
    max-height: 420px !important;

    margin: 0 auto;
    border: 2px solid #22c55e;
    object-fit: contain !important;
}

/* =========================================================
   11. Phrase Alignment
   ========================================================= */

#quoteBlock1 {
    text-align: left;
}

.phrase-text {
    text-align: left;
    padding-left: 0;
}

.phrase-text p {
    margin: 0 0 4px 0;
    padding: 0;
    text-align: left;
}

.phrase-dash {
    text-align: left;
    padding-left: 50px;
    margin: 8px 0 2px 0;
    color: #6b7280;
}

.phrase-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: center;
    color: #6b7280;
}

.phrase-origin {
    text-align: left;
    padding-left: 50px;
    font-size: 15px;
}

.phrase-date {
    text-align: right;
    padding-right: 0;
    font-size: 15px;
}

/* Old fallback id */
#quote-author1 {
    padding-left: 50px;
    color: #6b7280;
}

#origin,
#date_field {
    font-size: 14px;
}


/* =========================================================
   12. Jokes
   ========================================================= */

#JokesBlock1 {
    text-align: left;
}

#JokesBlock1 p,
#JokesBlock1 blockquote {
    margin: 0 0 18px 0;
}


/* =========================================================
   13. Words 3 / Words 2
   Old .BLword and .BLword2 Style
   ========================================================= */

#word_2,
#word_1 {
    background: #e6f2ff;
    padding: 0;
    margin: 0;
}

#word_2 blockquote,
#word_1 blockquote {
    margin: 0 0 10px 0;
    padding: 0;
    border: 0;
}

/* Main word row */
.BLword1 {
    display: block;
    width: 100%;
    background-color: #f9f9f9;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.10);
    margin: 0 0 5px 0;
    padding: 3px 5px;
    font-size: 15px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.35;
    color: #111827;
}

/* Meaning row, indented like old website */
.BLword2 {
    display: block;
    width: calc(100% - 50px);
    background-color: #f9f9f9;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.10);
    margin: 0 0 0 50px;
    padding: 3px 5px;
    font-size: 15px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    color: #111827;
}


/* =========================================================
   14. Footer
   ========================================================= */

.site-footer {
    text-align: center;
    padding: 24px;
    color: #6b7280;
}


/* =========================================================
   15. Responsive
   ========================================================= */

@media (max-width: 992px) {
    .top-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 14px;
    }

    .photo-left,
    .photo-right {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 22px;
        min-height: 80px;
    }

    .site-title {
        font-size: 30px;
    }

    .old-style-menu {
        display: block !important;
        position: static;
        width: 100%;
        margin-top: 16px;
        box-shadow: none;
    }

    .old-style-menu a {
        padding: 10px 12px;
        font-size: 16px;
    }

    .info-section {
        display: block;
        padding: 0 10px 24px 10px;
    }

    .links-column,
    .sidebar-column {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0;
    }

    .sidebar-column {
        margin-top: 20px;
    }

    .BLword2 {
        width: calc(100% - 35px);
        margin-left: 35px;
    }
}

@media (max-width: 576px) {
    .top-photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-card img {
        height: 230px;
    }
}

/* =========================================================
   16. Final Homepage Cleanup
   ========================================================= */

/* Remove unwanted horizontal scroll */
html,
body {
    overflow-x: hidden;
}

/* Ensure all homepage sections stay inside viewport */
.site-header,
.site-main,
.top-photo-grid,
.quote-section,
.info-section,
.site-footer {
    max-width: 100%;
}

/* Footer clean style */
.site-footer {
    background: #f6f9fc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    padding: 18px 10px;
    color: #6b7280;
    font-size: 14px;
}

.footer-inner p {
    margin: 0;
}


/* =========================================================
   17. Bottom Media Section
   Old Style: 50% Meme Left + 50% Video Right
   ========================================================= */

.media-section {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    background: #ffffff;
    padding: 12px 0 20px 0;
    margin: 0;
    align-items: start;
}

/* Left 50% image block */
.media-left {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

/* Meme/image should stay inside left 50% block */
.daily-meme-image {
    display: block;
    max-width: 95%;
    max-height: 90%;
    width: auto;
    height: auto;
    margin:0;
    border: 1px solid #22c55e;
}

/* Right 50% video block */
.media-right {
    width: 100%;
    min-width: 0;
    background: #000000;
    border: 1px solid #6b7280;
    padding: 0;
    margin: 0;
}

/* Video uses full right 50% column */
.daily-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    background: #000000;
}

/* Placeholder */
.media-placeholder {
    background: #e6f2ff;
    padding: 20px;
    text-align: center;
    color: #111827;
}

.media-placeholder.dark {
    background: #000000;
    color: #99ffff;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile: stack */
@media (max-width: 768px) {
    .media-section {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 12px 10px 20px 10px;
    }

    .daily-meme-image {
        max-width: 100%;
        max-height: none;
    }

    .daily-video {
        width: 100%;
        max-height: none;
    }
}


/* =========================================================
   18. Inner Page Layout
   For menu pages
   ========================================================= */

.page-main {
    width: 100%;
    min-height: 70vh;
    background: #f6f9fc;
    padding: 24px 18px 40px 18px;
}

.page-header {
    background: #e6f2ff;
    padding: 22px 24px;
    margin-bottom: 22px;
    border-left: 4px solid #0d86f9;
}

.page-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    color: #111827;
}

.page-header p {
    margin: 0;
    font-size: 17px;
    color: #4b5563;
}

.page-card {
    background: #ffffff;
    padding: 22px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.page-card p {
    margin: 0;
    font-size: 17px;
}


/* =========================================================
   19. Photo Album Page
   Clean version of old Photoalbum page
   ========================================================= */

.album-page-main {
    width: 100%;
    min-height: 70vh;
    background: #ffffff;
    padding: 16px 10px 35px 10px;
}

/* Header: title left, month/year filters right */
.album-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.album-title-area h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 300;
    font-style: italic;
    color: #111827;
}

.album-filter-area {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-style: italic;
}

.album-filter-area label {
    margin-left: 8px;
}

.album-filter-area select {
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-style: italic;
}

/* Album content wrapper */
.album-content {
    width: 100%;
}

/* Top and bottom month navigation */
.album-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 10px 0 14px 0;
}

.album-navigation-bottom {
    margin-top: 20px;
}

.album-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.album-nav-button img {
    width: 22px;
    height: 20px;
    display: block;
}

.album-current-month {
    font-size: 16px;
    font-style: italic;
    color: #111827;
    min-width: 130px;
    text-align: center;
}

/* Dynamic photo area */
.photo-album-grid {
    width: 100%;
    min-height: 180px;
    text-align: center;
    margin-bottom: 10px;
    transition: filter 0.25s ease;
}

/* Old page blur effect while loading */
.PhotoAlbumBlurImgs {
    filter: blur(3px);
}

/* Images returned from dynamicImage.php */
.photo-album-grid img {
    width: auto;
    max-width: 80%;
    height: auto;
    max-height: 95vh;
    margin: 2px 5px;
    border-radius: 10px 0 10px 0;
    cursor: pointer;
    transition: border 0.3s ease, transform 0.2s ease;
}

.photo-album-grid img:hover {
    transform: scale(1.01);
}

/* If dynamicImage.php returns table layout */
.photo-album-grid td {
    text-align: center;
    vertical-align: middle;
    height: 100px;
}

/* Loading/error text */
.album-loading,
.album-error {
    padding: 24px;
    text-align: center;
    color: #4b5563;
    font-size: 16px;
}

/* Album photo modal */
.album-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.90);
}

.album-photo-modal.active {
    display: flex;
}

.album-photo-modal img {
    display: block;
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-out;
    animation-name: albumZoom;
    animation-duration: 0.6s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.album-caption-text {
    position: fixed;
    bottom: 18px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #cccccc;
    font-size: 15px;
    font-style: italic;
    padding: 0 20px;
}

@keyframes albumZoom {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive album page */
@media (max-width: 768px) {
    .album-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .album-filter-area {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .album-title-area h1 {
        font-size: 28px;
    }

    .photo-album-grid img {
        max-width: 92%;
        max-height: 85vh;
    }

    .album-photo-modal img {
        max-width: 92vw;
        max-height: 86vh;
    }
}

/* =========================================================
   Photo Album Center Alignment Fix
   ========================================================= */

.photo-album-grid {
    width: 100%;
    text-align: center !important;
    display: block !important;
    margin: 0 auto !important;
}

/* If dynamicImage.php returns table */
.photo-album-grid table {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* If images are directly returned */
.photo-album-grid img {
    display: inline-block !important;
    margin: 8px auto !important;
    vertical-align: middle !important;
}

/* If old output wraps images in div/td */
.photo-album-grid div,
.photo-album-grid td,
.photo-album-grid tr {
    text-align: center !important;
}

/* =========================================================
   20. Photo of the Month Page
   Clean version of old pom.html
   ========================================================= */

.pom-page-main {
    width: 100%;
    min-height: 70vh;
    background: #ffffff;
    padding: 24px 10px 40px 10px;
}

.pom-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Month / Year selectors */
.pom-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 16px;
    font-style: italic;
}

.pom-filter label {
    font-weight: 700;
}

.pom-filter select {
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-style: italic;
}

/* Media display */
.pom-media-box {
    width: 100%;
    text-align: center;
    margin: 0 auto 14px auto;
}

.pom-main-image,
.pom-main-video {
    display: block;
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    margin: 0 auto;
    cursor: pointer;
}

.pom-main-video {
    width: 100%;
    background: #000000;
    cursor: default;
}

/* Navigation */
.pom-navigation {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;
    gap: 8px;
}

.pom-navigation h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    text-align: center;
}

.pom-nav-button {
    font-size: 18px;
    padding: 2px 8px;
    background: none;
    border: 1px solid #cccccc;
    border-radius: 5px;
    cursor: pointer;
}

.pom-nav-button:hover {
    background: #e6f2ff;
}

/* Loading / Error */
.pom-loading,
.pom-error {
    padding: 28px;
    color: #4b5563;
    font-size: 16px;
}

/* Image modal */
.pom-image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.90);
}

.pom-image-modal.active {
    display: flex;
}

.pom-image-modal img {
    display: block;
    max-width: 90vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-out;
    animation-name: pomZoom;
    animation-duration: 0.6s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

@keyframes pomZoom {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pom-wrapper {
        max-width: 100%;
    }

    .pom-main-image,
    .pom-main-video {
        max-width: 96%;
        max-height: 75vh;
    }
}


/* =========================================================
   21. Video Album Page
   Centered Video Module + 2 Videos Per Row
   ========================================================= */

.video-album-page-main {
    width: 100%;
    min-height: 70vh;
    background: #ffffff;
    padding: 24px 10px 40px 10px;
}

/* Full page wrapper */
.video-album-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Title left aligned like old page */
.video-album-title {
    text-align: left;
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 25px;
    font-weight: 300;
    font-style: italic;
    color: #111827;
    line-height: 1.2;
}

/* Toolbar centered with same width as video module */
.video-album-toolbar {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto 18px auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
}

/* Top and bottom year navigation */
.video-year-navigation,
.video-year-navigation-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

/* Bottom navigation should align with centered module */
.video-year-navigation-bottom {
    width: 100%;
    max-width: 1050px;
    margin: 24px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.video-album-toolbar .video-year-navigation {
    justify-self: start;
}

.video-year-navigation-bottom {
    padding-left: 0 !important;
}



/* Arrow buttons */
.video-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.video-nav-button img {
    width: 22px;
    height: 20px;
    display: block;
}

.video-current-year {
    min-width: 160px;
    text-align: left;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: #111827;
}

/* Year selector on right side of centered toolbar */
.video-year-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 18px;
    font-style: italic;
}

.video-year-selector label {
    font-weight: 700;
}

.video-year-selector select {
    padding: 4px 6px;
    border: 1px solid #9ca3af;
    background: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-style: italic;
}

/* Main video module centered */
.video-album-grid {
    width: 100%;
    max-width: 1050px;
    min-height: 220px;
    margin: 0 auto;
    text-align: center;
    transition: filter 0.25s ease;
}

/* If old dynamicVedio.php returns container/row */
.video-album-grid .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.video-album-grid .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: start !important;
}

/* Remove Bootstrap column width conflict */
.video-album-grid [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Video card/item */
.video-album-grid .video-item,
.video-album-item {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: center !important;
    margin: 0 0 18px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Videos: each takes its own column */
.video-album-grid video,
.video-album-video {
    display: block !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 520px !important;
    margin: 0 auto !important;
    background: #000000 !important;
    border-radius: 0 !important;
}

/* Captions under videos */
.video-album-grid p {
    width: 100% !important;
    max-width: 500px !important;
    margin: 10px auto 0 auto !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    font-style: italic !important;
    text-align: center !important;
}

/* Loading / error */
.video-loading,
.video-error {
    padding: 28px;
    color: #4b5563;
    font-size: 16px;
    text-align: center;
}

/* Blur while loading */
.PhotoAlbumBlurImgs {
    filter: blur(3px);
}

/* Tablet */
@media (max-width: 992px) {
    .video-album-toolbar,
    .video-album-grid,
    .video-year-navigation-bottom {
        max-width: 92%;
    }

    .video-album-grid .row {
        gap: 18px !important;
    }
}

/* Mobile: one video per row */
@media (max-width: 768px) {
    .video-album-title {
        font-size: 34px;
    }

    .video-album-toolbar {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .video-year-navigation,
    .video-year-navigation-bottom {
        justify-content: center;
    }

    .video-year-selector {
        justify-content: center;
    }

    .video-album-grid .row {
        grid-template-columns: 1fr !important;
    }

    .video-album-grid video,
    .video-album-video {
        max-width: 100% !important;
        max-height: none !important;
    }
}


/* =========================================================
   22. Cards Page
   Clean version of card.html
   ========================================================= */

.cards-page-main {
    width: 100%;
    min-height: 70vh;
    background: #ffffff;
    padding: 24px 10px 40px 10px;
}

.cards-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Header: title left, year selector right */
.cards-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.cards-title-area h1 {
    margin: 0;
    padding: 0;
    font-size: 25px;
    font-weight: 300;
    font-style: italic;
    color: #111827;
    line-height: 1.2;
}

.cards-filter-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 18px;
    font-style: italic;
}

.cards-filter-area label {
    font-weight: 700;
}

.cards-filter-area select {
    padding: 4px 6px;
    border: 1px solid #9ca3af;
    background: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-style: italic;
}

/* Debug box appears only on API error */
.cards-debug-box {
    display: none;
    max-width: 1050px;
    margin: 0 auto 12px auto;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

/* Navigation centered with same width as cards module */
.cards-navigation {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.cards-navigation-bottom {
    margin-top: 22px;
}

.cards-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.cards-nav-button img {
    width: 22px;
    height: 20px;
    display: block;
}

.cards-current-year {
    min-width: 90px;
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: #111827;
}

/* Cards grid: 2 images per row on desktop */
.cards-grid {
    width: 100%;
    max-width: 1050px;
    min-height: 220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    transition: filter 0.25s ease;
}

.cards-item {
    text-align: center;
}

.cards-item img {
    display: block;
    max-width: 432px;
    max-height: 324px;
    width: auto;
    height: auto;
    margin: 0 auto;
    cursor: zoom-in;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border 0.2s ease;
}

.cards-item img:hover {
    transform: scale(1.01);
    border-color: #22c55e;
}

/* Loading / empty / error */
.cards-loading,
.cards-empty,
.cards-error {
    grid-column: 1 / -1;
    padding: 28px;
    color: #4b5563;
    font-size: 16px;
    text-align: center;
}

/* Modal */
.cards-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.90);
}

.cards-photo-modal.active {
    display: flex;
}

.cards-photo-modal img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 86vh;
    object-fit: contain;
    cursor: zoom-out;
    animation-name: cardsZoom;
    animation-duration: 0.6s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.cards-caption-text {
    position: fixed;
    bottom: 18px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #cccccc;
    font-size: 15px;
    font-style: italic;
    padding: 0 20px;
}

@keyframes cardsZoom {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Reuse blur effect */
.PhotoAlbumBlurImgs {
    filter: blur(3px);
}

/* Mobile */
@media (max-width: 768px) {
    .cards-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cards-filter-area {
        justify-content: flex-start;
    }

    .cards-title-area h1 {
        font-size: 34px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 95%;
    }

    .cards-item img {
        max-width: 100%;
        max-height: none;
    }
}

/* =========================================================
   23. Social Media Page
   Home-like page with full-width social layout
   ========================================================= */

.social-page-main {
    width: 100%;
    min-height: 70vh;
    background: #ffffff;
    padding: 0 0 40px 0;
}

/* Full width, like old page */
.social-wrapper {
    width: 100%;
    max-width: none;
    margin: 18px 0 0 0;
    padding: 0 12px;
}

/* Left category + right content full width */
.social-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

/* Left category box */
.social-category-menu {
    width: 100%;
    border: 1px solid #cccccc;
    background: #ffffff;
}

/* Category rows */
.social-category-button {
    display: block;
    width: 100%;
    min-height: 24px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 1px solid #dddddd;
    background: #ffffff;
    color: #212529;
    text-align: left;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
}

.social-category-button:hover,
.social-category-button.active {
    background: #007bff;
    color: #ffffff;
}

/* Right content takes remaining full width */
.social-content-panel {
    min-height: 370px;
    border: 1px solid #cccccc;
    padding: 14px;
    background: #ffffff;
}

.social-content-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    color: #111827;
}

.social-links-line {
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
    font-style: italic;
}

.social-links-line a {
    color: #0000ff;
    display: inline;
    text-decoration: none;
}

.social-links-line a:hover {
    text-decoration: underline;
}

.social-separator {
    color: #111827;
}

.social-empty {
    color: #6b7280;
    font-size: 15px;
    font-style: italic;
}

/* Debug box only appears if API fails */
.social-debug-box {
    display: none;
    margin: 0 0 12px 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

/* Mobile */
@media (max-width: 768px) {
    .social-wrapper {
        padding: 0 10px;
    }

    .social-layout {
        grid-template-columns: 1fr;
    }

    .social-content-panel {
        min-height: 240px;
    }

    .social-category-button {
        padding: 8px 10px;
    }
}