/*
Theme Name: Sangenjaya Shogi Club
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: Custom WordPress theme for Sangenjaya Shogi Club - Converted from static HTML
Version: 1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sangenjaya-shogi
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1. Variables
   2. Global / Base Styles
   3. Header & Navigation
   4. Hero
   5. Announcement Section (Front Page + News Page + Single Post)
   6. Greeting Section
   7. Instructor Section
   8. Alumni Section
   9. User Guide Section
   10. Access Section
   11. Footer
   12. Photo Gallery
   13. Photo Gallery Modal/Lightbox
   14. Pagination
   15. 3D Photo Carousel
   16. Mobile Styles (768px)
   17. Small Mobile Styles (480px)
   18. Extra Small Mobile Styles (375px)
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
    --bg: #ffffff;
    /* background */
    --accent-red: #C0392B;
    /* headers */
    --matcha: #A7C796;
    /* accent */
    --text: #2C2C2C;
    /* main text */
    --line: #D8D8D8;
    /* borders, subtle lines */
    --card-bg: #F5F1E6;
    /* cards */
    --footer-bg: #2C2C2C;
    /* footer background */
}


/* ==========================================================================
   2. GLOBAL / BASE STYLES
   ========================================================================== */
html,
body {
    min-height: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    flex-direction: column;
    background-color: var(--footer-bg);
}

*[id] {
    scroll-margin-top: 140px;
}

body {
    font-family: "Noto Sans JP", "Noto Serif JP", system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    min-height: 100%;
    display: flex;
    justify-content: center;
}

.container {
    flex: 1;
    background: #fff;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
}

/* Hide checkbox (used for mobile menu toggle) */
#menu-toggle {
    display: none;
}


/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    margin: 0 0 20px 0;
    background-color: transparent;
}

.topbar {
    background-color: var(--card-bg);
    width: 100vw;
    position: fixed;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    justify-content: center;
    padding: 8px 0;
    z-index: 9999;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    flex-wrap: wrap;
    max-width: 1200px;
}

.logo {
    margin-top: 8px;
}

.logo img {
    width: 150px;
    height: auto;
}

.topnav {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 18px;
}

.topnav a {
    color: var(--matcha);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
    outline: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.topnav a:hover {
    color: var(--accent-red);
    background: rgba(192, 57, 43, 0.15);
}

.topnav a:focus {
    color: var(--accent-red);
    text-decoration: none;
}

.topnav a.active {
    color: var(--accent-red);
    text-decoration: underline;
}

.topnav li {
    list-style: none;
}

/* Hide hamburger by default on desktop */
.hamburger {
    display: none;
}

.announcement-container .ann-content a {
    overflow-wrap: break-word;
    word-wrap: break-word; 
    word-break: break-word; 
}

.ann-content-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 54px;
}


/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 1200px;
    margin-top: 90px;
}


/* ==========================================================================
   5. ANNOUNCEMENT SECTION
   (shared base styles + page-specific overrides for:
    - Front Page          -> .page-template-home
    - News Archive Page   -> .page-template-news-page
    - Single Post Page    -> .single-post / .post-template-default)
   ========================================================================== */

/* --- Section wrapper --- */
.section-announcement {
    margin: 0 auto 40px auto;
    max-width: 1200px;
    position: relative;
    max-width: 1200px;
}

.page-template-news-page .section-announcement {
    margin: 115px auto 40px auto;
    max-width: 1200px;
    position: relative;
    max-width: 1200px;
}

.post-template-default .section-announcement {
    margin: 140px auto 20px auto;
    position: relative;
    max-width: 1200px;
}

.single-detail_page .section-announcement {
    margin: 140px auto 20px auto;
    max-width: 1200px;
    position: relative;
    max-width: 1200px;
}

.announcements {
    display: flex;
    color: var(--accent-red);
}

/* --- Card / container --- */
.announcement-container {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    padding-top: 25px;
}

.single-detail_page .announcement-container {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px 60px 40px;
    margin-top: 0;
}

/* News archive page override */
.page-template-news-page .announcement-container {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0px 40px 20px;
    margin-top: 0;
}

/* Single post page override */
.single-post .announcement-container {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px 60px 40px;
}

.post-template-default .announcement-container {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px 60px 40px;
}

.article-announcement-container a {
    word-break: break-word;
}

.article-announcement-container {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px 60px 40px;
}

/* --- "Pill" title badge above the card --- */
.section-title-pill {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    border-radius: 5px;
    background: #FFFFF0;
    color: var(--accent-red);
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    padding: 5px 30px;
    border: 2px solid var(--line);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
}

/* --- List wrapper --- */
.ann-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 20px;
    padding-top: 10px;
}

.page-template-news-page .ann-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding-top: 0;
}

.ann-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- Individual list item: FRONT PAGE version (single row, date + title inline) --- */
.page-template-home .ann-item {
    display: flex;
    padding: 15px 0;
    font-size: 20px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    gap: 80px;
    align-items: flex-start;
    background: transparent;
    transition: none;
    margin: 0 20px;
    text-align: justify;
}

/* --- Individual list item: NEWS PAGE version (stacked, date above title) --- */
.page-template-news-page .ann-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    background: transparent;
    margin: 0;
}

.ann-item:hover {
    background: transparent;
}

.ann-item:last-child {
    border-bottom: 1px solid var(--line);
}

/* --- Date styling --- */
.ann-date {
    color: var(--text);
    font-size: 20px;
    font-weight: 400;
    white-space: nowrap;
    min-width: 147px;
}

/* News page: bold date */
.page-template-news-page .ann-date {
    font-weight: 700;
}

/* --- Title styling (used inside single post template) --- */
.ann-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.ann-title a {
    text-decoration: none;
    color: var(--text);
}

.ann-title a:hover {
    text-decoration: underline;
    text-decoration-color: black;
}

.post-template-default .ann-title {
    text-align: center;
    font-weight: normal;
    font-size: 16px;
    margin: 16px 0;
}

/* --- Excerpt / description text (news page only) --- */
.ann-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    text-align: left;
}

.ann-description a {
    text-decoration: underline;
    color: var(--text);
    word-break: break-all;
}

.ann-description a:hover {
    text-decoration: underline;
    color: var(--accent-red);
}

/* --- Title/link text wrapper --- */
.ann-text {
    flex: 1;
    line-height: 1.6;
    font-size: 20px;
}

.ann-text a {
    text-decoration: none;
    color: var(--text);
}

.ann-text a:hover {
    text-decoration: underline;
    text-decoration-color: black;
}

/* --- "View past news" link (front page) --- */
.ann-past {
    text-align: right;
    margin-right: 18px;
    padding: 15px 0;
    background: transparent;
    border-top: none;
}

.ann-past a {
    color: var(--text);
    text-decoration: underline;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.ann-past a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* --- "Back to news list" link (single post) --- */
.ann-back {
    margin-right: 18px;
    padding: 15px 0;
    background: transparent;
    border-top: none;
}

.ann-back a {
    color: var(--text);
    text-decoration: underline;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.ann-back a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}


/* ==========================================================================
   6. GREETING SECTION
   ========================================================================== */
.section-greeting {
    position: relative;
    margin: 60px auto 40px auto;
    max-width: 1200px;
}

.greeting-title-pill {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    border-radius: 5px;
    background: #FFFFF0;
    color: var(--accent-red);
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 35px;
    border: 2px solid var(--line);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.greeting {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 25px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.greeting .row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: nowrap;
}

.greeting .greet-name {
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 0;
}

.greeting .info {
    font-size: 18px;
    color: var(--text);
    margin: 0;
}

.greeting ul {
    font-size: 18px;
    margin-top: 10px 0 0 0;
    padding-left: 20px;
    list-style-position: inside;
}

.greeting .column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.greeting .column-left {
    flex: 30%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-left: 10%;
}

.greeting .column-right {
    width: 70%;
    margin-top: 20px;
    padding-right: 70px;
}

.img-placeholder {
    max-width: 300px;
    width: 100%;
}

.img-placeholder img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* ==========================================================================
   7. INSTRUCTOR SECTION
   ========================================================================== */
.section-heading.ins {
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.instructor-wrap {
    display: flex;
    margin-top: 18px;
    gap: 20px;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.card-instructor {
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 480px;
    padding: 20px;
    text-align: center;
}

.avatar {
    width: 100%;
    height: 216px;
    margin: 0 auto;
    overflow: hidden;
}

.avatar img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    background-color: #ccc;
    border-radius: 2%;
    margin: 0 auto 12px;
}

.card-instructor .name {
    margin: 6px 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.card-instructor p {
    font-size: 18px;
    line-height: 1.5;
    text-align: justify;
}


/* ==========================================================================
   8. ALUMNI SECTION
   ========================================================================== */
.alumni {
    margin: 0 auto 40px auto;
    max-width: 1200px;
    text-align: center;
}

.alumni-heading {
    font-weight: 700;
    color: var(--accent-red);
    background-color: var(--card-bg);
    padding: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.alumni-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    gap: 20px;
    text-align: justify;
}

.column-alumni {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.column-alumni:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.column-alumni:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.column-alumni:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    text-align: left;
}

.column-alumni:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: flex-end;
    margin-top: 0;
}

.photo-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-placeholder img {
    width: 100%;
    max-width: 280%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 375/446;
}

.description {
    margin-top: 24px;
    font-size: 20px;
}

.column-alumni .description {
    margin-top: 24px;
    font-size: 20px;
    color: var(--text);
}

.credit {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
}

.credit .text-below {
    font-size: 14px;
    margin: 0;
}


/* ==========================================================================
   9. USER GUIDE SECTION
   ========================================================================== */
.user-guide {
    position: relative;
    max-width: 1200px;
}

.user-guide-heading {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    border-radius: 5px;
    background: #FFFFF0;
    color: var(--accent-red);
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 35px;
    border: 2px solid var(--line);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
}

.user-guide-box {
    margin: 60px 0 40px 0;
    background: var(--card-bg);
    border-radius: 5px;
    border: 1px solid var(--line);
    padding-top: 10px;
}

.user-guide .user {
    padding: 15px 0 15px 25px;
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
}

.user-guide .fees {
    margin-top: -20px !important;
}

.user-guide table {
    width: 95%;
    border-collapse: collapse;
    margin: 0 auto 22px auto;
}

.user-guide td {
    padding: 10px;
    border: 1px solid var(--line);
    font-size: 20px;
}

.user-guide .left-col {
    width: 40%;
    background-color: #ccc;
}

.user-guide .user-note {
    font-size: 20px;
    color: var(--text);
    padding: 0 0 0 25px;
}


/* ==========================================================================
   10. ACCESS SECTION
   ========================================================================== */
.section-access {
    margin: 50px auto 40px auto;
    max-width: 1200px;
    position: relative;
}

.access-title-pill {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    border-radius: 5px;
    background: #FFFFF0;
    color: var(--accent-red);
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 35px;
    border: 2px solid var(--line);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
}

.access-card {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding-top: 70px;
}

.column-access {
    width: calc((100% - 50px) / 2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px
}

.column-access:not(:first-child) {
    align-items: flex-start;
    list-style: inside;
}

.access-photo-placeholder {
    max-width: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.google-map {
    width: 100%;
    height: 400px;
    border: 0;
}

.acc-list {
    list-style-type: disc;
    margin: 0;
    text-align: left;
    list-style-position: outside;
}

.acc-list li {
    margin-bottom: 10px;
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: auto;
}

.footer-uprow {
    max-width: 1200px;
    padding: 20px 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: white;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 80px;
}

.logo-section img {
    width: 200px;
    height: 70px;
    border: 1px solid #ccc;
    padding: 7px;
    margin: -3px;
    border-radius: 4px;
}

.footer-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    background: #f9f9f9;
    color: var(--text);
    text-align: center;
    gap: 15px;
    margin: 0 auto;
}

.footer-text-box {
    font-size: 14px;
}

.footer-text-box a {
    color: #0066cc;
    text-decoration: underline;
}

.footer-text-box a:hover {
    color: var(--matcha);
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code img {
    width: 70px;
    height: 70px;
    background: #f0f0f0;
    border: 2px solid var(--line);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.footer-secrow {
    background: var(--footer-bg);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 20px 0;
}

.footer-downrow {
    max-width: 1200px;
    padding: 0 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-logotext {
    font-family: "Noto Serif JP";
    color: white;
    font-weight: 700;
    width: 100%;
    flex: 1;
}

.footer-logotext img {
    overflow-clip-margin: content-box;
    overflow: clip;
}

.footer-center-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 8;
}

.footer-nav.footnav {
    display: flex;
    gap: 20px;
    align-items: stretch;
    font-size: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-nav.footnav li {
    display: flex;
    list-style: none;
}

.footer-nav.footnav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 0;
    transition: color 0.2s;
}

.footer-nav.footnav a:hover {
    color: var(--accent-red);
}

.footer-nav.footnav a:focus {
    color: var(--accent-red);
    text-decoration: none;
}

.footer-nav.footnav a.active {
    color: var(--accent-red);
    text-decoration: underline;
}

.site-footer .copyright {
    color: white;
    font-size: 12px;
    text-align: center;
    font-weight: 400;
}


/* ==========================================================================
   12. PHOTO GALLERY
   ========================================================================== */
.photo-gallery-section {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 24px;
}

.gallery-title h2 {
    position: relative;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    border-radius: 5px;
    background: #fffff0;
    color: var(--accent-red);
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 15px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    margin-top: 10px;
    flex: none;
}

.gallery {
    border: 1px solid #00000015;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.gallery:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.desc {
    padding: 15px 10px;
    text-align: center;
    font-size: 16px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   13. PHOTO GALLERY MODAL / LIGHTBOX
   ========================================================================== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery-modal .modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    max-width: 800px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
}

.prev-arrow,
.next-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.prev-arrow:hover,
.next-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* ==========================================================================
   14. PAGINATION
   ========================================================================== */
.pagination-section {
    display: flex;
    margin: 20px 0;
    align-items: center;
    justify-content: flex-end;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background-color: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-item:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translate(-1px);
}

.pagination-item.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-item.active:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.pagination-item svg {
    width: 16px;
    height: 16px;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* ==========================================================================
   15. 3D PHOTO CAROUSEL
   ========================================================================== */
.enlarged-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.photo-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0 20px 0;
    width: 100%;
    max-width: 1000px;
    z-index: 100;
}

.nav-btn {
    background: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.nav-btn svg path {
    stroke: rgb(0, 0, 0);
    stroke-width: 4;
}

.nav-btn:hover svg path {
    stroke: white;
}

.nav-btn:hover {
    background: var(--accent-red);
    transform: scale(1.1);
    border: #fff;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -20px auto 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    margin-top: -160px;
}

.carousel-slide {
    position: absolute;
    width: 620px;
    height: 390px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    left: 50%;
    transform: translateX(-50%) translateZ(-100px) scale(0.8);
    opacity: 0.6;
    z-index: 1;
}

.carousel-slide.active {
    transform: translateX(-50%) translateZ(0) scale(1);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.carousel-slide.prev {
    left: 10%;
    transform: translateX(-50%) translateZ(-50px) rotateY(15deg) scale(0.85);
    opacity: 0.7;
    z-index: 2;
    width: 25%;
    height: 60%;
}

.carousel-slide.next {
    left: 90%;
    transform: translateX(-50%) translateZ(-50px) rotateY(-15deg) scale(0.85);
    opacity: 0.7;
    z-index: 2;
    width: 25%;
    height: 60%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.281);
    border: 1px solid rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    line-height: 1%;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
}

.carousel-nav-arrow:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-nav-arrow.prev {
    left: -20px;
    margin-top: -85px;
}

.carousel-nav-arrow.next {
    right: -20px;
    margin-top: -85px;
}

.carousel-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-indicator.active {
    background: var(--accent-red);
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.2);
}

.carousel-indicator:hover:not(.active) {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.2);
}


/* ==========================================================================
   16. MOBILE STYLES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- Layout --- */
    .container {
        padding: 0 16px;
    }

    .page {
        max-width: none;
    }

    *[id] {
        scroll-margin-top: 100px;
    }

    /* --- Header & Navigation --- */
    .topbar {
        padding: 10px 0;
        position: fixed;
        overflow: hidden;
    }

    .topbar-content {
        padding: 0 16px;
        flex-wrap: wrap;
        position: relative;
    }

    .topbar-content .logo img {
        width: 120px;
    }

    .hamburger {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        order: 2;
    }

    .hamburger .bar {
        height: 3px;
        background: var(--matcha);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s, ease;
    }

    .topnav {
        display: none;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        order: 3;
        gap: 0;
        border-top: 1px solid var(--line);
        margin-top: 10px;
    }

    .topnav a {
        display: block;
        padding: 15px 0 5px;
        border-radius: 6px;
        margin: 0;
        font-size: 18px;
        text-align: left;
        border-bottom: 1px solid var(--line);
    }

    .topbar-content {
        min-height: 60px;
    }

    .topnav a:hover {
        color: var(--accent-red);
        background: rgba(192, 57, 43, 0.15);
    }

    .topnav a:focus {
        color: var(--accent-red);
        text-decoration: none;
    }

    .topnav a.active {
        color: var(--accent-red);
        text-decoration: underline;
    }

    /* Show menu when checkbox is checked */
    #menu-toggle:checked~.page .topnav {
        display: flex !important;
    }

    /* Animate hamburger to X */
    #menu-toggle:checked~.page .hamburger .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #menu-toggle:checked~.page .hamburger .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.page .hamburger .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- Announcements --- */
    .section-announcement {
        margin: 90px auto 40px auto;
    }

    .page-template-home .section-announcement {
        margin: 0 auto 40px auto;
        max-width: 1200px;
    }

    .announcements {
        font-size: 20px;
        margin: 20px;
        padding: 20px 0 0 0;
    }

    .page-template-news-page .announcement-container {
        padding: 0px 30px 20px;
        margin: 0px;
    }

    .page-template-news-page .ann-card {
        margin: 0;
        padding-top: 10px;
    }

    .page-template-news-page .ann-item {
        flex-direction: column;
        padding: 0 15px 15px 15px;
        margin: 0;
        padding: 15px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .page-template-news-page .ann-date,
    .page-template-news-page .ann-description {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-template-news-page .ann-title {
        font-size: 16px;
        font-weight: 700;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    /* --- Section title pills --- */
    .section-greeting,
    .section-instructor,
    .alumni,
    .user-guide,
    .section-access {
        margin-bottom: 30px;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .section-title-pill,
    .greeting-title-pill,
    .section-heading.ins,
    .alumni-heading,
    .user-guide-heading,
    .access-title-pill {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .section-title-pill,
    .greeting-title-pill,
    .section-heading.ins,
    .user-guide-heading,
    .access-title-pill {
        padding: 8px 20px;
        font-size: 20px;
        white-space: nowrap;
        max-width: calc(100vw - 40px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .section-access {
        margin: 40px auto 40px auto;
    }

    .access-card {
        margin: 40px 0 0 0;
    }

    .hero img {
        margin-top: 80px;
    }

    /* --- Photo Gallery --- */
    .gallery-title h2 {
        font-size: 20px;
    }

    .page-template-photo-gallery .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0;
        width: 100%;
        margin-top: -15px;
    }

    .page-template-photo-gallery .gallery img {
        height: 180px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .desc {
        padding: 12px 8px;
        font-size: 14px;
    }

    .page-template-photo-gallery .gallery .desc {
        padding: 12px 8px;
        font-size: 14px;
    }
    

    /* --- Pagination --- */
    .pagination {
        gap: 6px;
    }

    .pagination-item {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .pagination-arrow svg {
        width: 14px;
        height: 14px;
    }

    /* --- Announcement (front page only) --- */
    .page-template-home .ann-item {
        flex-direction: column;
        gap: 8px;
        padding: 15px 12px;
    }

    .ann-date {
        font-size: 18px;
    }

    .ann-text {
        font-size: 16px;
    }

    /* --- Greeting Section --- */
    .greeting .row {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .greeting .column-right,
    .greeting .column-left {
        width: 100%;
        margin-top: 0;
        padding-right: 0;
    }

    .greeting .column-left {
        width: 100%;
        margin-top: 10px;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .greeting .info {
        font-size: 16px;
    }

    .greeting .greet-name {
        text-align: center;
    }

    .img-placeholder img {
        width: 100%;
        height: auto;
        max-width: 280px;
        object-fit: cover;
    }

    /* --- Instructor Section --- */
    .instructor-wrap {
        flex-direction: column;
        gap: 15px;
    }

    .card-instructor {
        width: 80%;
        max-width: 100%;
    }

    .avatar img {
        width: 200px;
        height: 216px;
    }

    .card-instructor .name {
        font-size: 18px;
    }

    .card-instructor p {
        font-size: 16px;
    }

    /* --- Alumni Section --- */
    .alumni-card {
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
        position: relative;
        gap: 10px;
    }

    .column-alumni {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .column-alumni:nth-child(1),
    .column-alumni:nth-child(2) {
        width: calc(50% - 5px);
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
    }

    .photo-placeholder {
        width: 100%;
        margin-bottom: 0;
    }

    .photo-placeholder img {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 150px;
        aspect-ratio: 375/446;
        border-radius: 15px;
        object-fit: cover;
    }

    .column-alumni:nth-child(3) {
        width: 100%;
        text-align: left;
        margin-top: 15px;
        margin-bottom: 40px;
        grid-column: unset;
        justify-self: unset;
        align-self: unset;
    }

    .column-alumni .description {
        font-size: 16px;
        margin-top: 0;
        line-height: 1.5;
    }

    .credit {
        position: absolute;
        right: 15px;
        bottom: 15px;
        width: auto;
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
    }

    .credit .text-below {
        font-size: 14px;
        margin-top: 0;
        text-align: right;
    }

    /* --- User Guide --- */
    .user-guide table td {
        font-size: 16px;
    }

    .user-guide td {
        padding: 8px 6px;
    }

    .user-guide .user {
        font-size: 18px;
        padding: 12px 0 12px 15px;
        margin-top: 10px;
    }

    .user-guide .user-note {
        padding: 0 0 0 15px;
        font-size: 16px;
    }

    /* --- Access Section --- */
    .access-card {
        flex-direction: column;
        gap: 20px;
        padding: 50px 15px 15px 15px;
        align-items: center;
    }

    .column-access {
        width: 100%;
        padding: 10px 25px;
        text-align: center;
        align-items: center;
    }

    .acc-list {
        text-align: center;
        list-style-position: outside;
        padding-left: 0;
    }

    .google-map {
        height: 300px;
    }

    .acc-list li {
        font-size: 16px;
        margin-bottom: 8px;
        text-align: justify;
    }

    /* CAROUSEL */
    .carousel-container {
        padding: 0 60px;
        height: 400px;
        margin: -20px;
        width: 92%;
    }

    .carousel-wrapper {
        margin-top: -185px;
    }

    .carousel-slide {
        width: 380px;
        height: 260px;
    }

    .carousel-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-nav-arrow.prev {
        left: 50px;
        margin-top: -95px;
    }

    .carousel-nav-arrow.next {
        right: 50px;
        margin-top: -95px;
    }

    .carousel-slide.prev {
        width: 30%;
        height: 60%;
        left: 10%;
        transform: translateX(-50%) translateZ(-50px) rotateY(20deg) scale(0.75);
    }

    .carousel-slide.next {
        width: 30%;
        height: 60%;
        left: 90%;
        transform: translateX(-50%) translateZ(-50px) rotateY(-20deg) scale(0.75);
    }

    .carousel-slide.active {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .carousel-indicators {
        bottom: 135px;
        gap: 8px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-indicator.active {
        transform: scale(1.2);
    }

    .photo-navigation {
        width: 92%;
        max-width: none;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
    }

    .page-template-photo-carousel .site-footer {
        margin-top: -80px;
    }

    /* --- Footer (consolidated) --- */
    .footer-uprow {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 15px 16px;
    }

    .page-template-home .footer-uprow {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 16px;
    }

    .page-template-news-page .footer-uprow {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 16px;
    }

    .footer-center {
        order: 2;
        gap: 10px;
    }

    .logo-section img {
        width: 150px;
        padding: 0 5px;
        margin: 12px;
    }

    .footer-logo {
        order: 1;
        justify-content: center;
    }

    .footer-logotext img {
        width: 120px;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }

    .footer-downrow {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 0 5px;
    }

    .page-template-photo-carousel .footer-downrow {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 0 16px;
    }

    .footer-center-nav {
        align-items: center;
    }

    .footer-nav.footnav {
        font-size: 16px;
        gap: 15px;
        margin-bottom: 15px;
    }

    .page-template-home .footer-nav.footnav {
        font-size: 16px;
        gap: 2px;
        margin-bottom: 15px;
    }

    .page-template-news-page .footer-nav.footnav {
        font-size: 16px;
        gap: 2px;
        margin-bottom: 15px;
    }

    .footer-nav.footnav a {
        padding: 2px 8px;
    }

    .page-template-photo-carousel .footer-nav.footnav a {
        padding: 5px 8px;
    }
}


/* ==========================================================================
   17. SMALL MOBILE STYLES (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .topnav a {
        font-size: 16px;
    }

    .page-template-news-page .container {
        width: 10px;
    }

    .footer-nav.footnav {
        gap: 4px;
    }

    .page-template-photo-carousel .footer-nav.footnav {
        gap: 8px;
    }

    .footer-nav.footnav a {
        font-size: 16px;
    }

    .page-template-home .footer-nav.footnav {
        gap: 4px;
    }

    /* --- Photo Gallery --- */
    .gallery-container {
        gap: 15px;
    }

    .gallery img {
        height: 200px;
    }

    .gallery .desc {
        font-size: 14px;
        padding: 12px;
    }

    .page-template-photo-carousel .gallery-title h2 {
        font-size: 18px;
        padding: 4px 6px;
        top: -20px;
    }

    /* --- Gallery Modal --- */
    .prev-arrow,
    .next-arrow {
        font-size: 20px;
        padding: 10px;
    }

    /* --- Carousel --- */
    .carousel-container {
        height: 280px;
        width: 80%;
        margin: 20px;
    }

    .carousel-slide {
        width: 250px;
        height: 160px;
    }

    .carousel-slide.active {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
    
    .carousel-slide.prev {
        width: 35%;
        height: 60%;
        left: 4%;
        transform: translateX(-50%) translateZ(-25px) rotateY(35deg) scale(0.65);
        opacity: 0.5;
    }

    .carousel-slide.next {
        width: 35%;
        height: 60%;
        left: 96%;
        transform: translateX(-50%) translateZ(-25px) rotateY(-35deg) scale(0.65);
        opacity: 0.5;
    }

    .carousel-nav-arrow {
        width: 25px;
        height: 25px;
        font-size: 18px;
        margin: 15px;
    }

    .carousel-nav-arrow.prev {
        left: 12px;
    }

    .carousel-nav-arrow.next {
        right: 12px;
    }

    .page-template-photo-carousel .carousel-indicators {
        bottom: 125px;
        gap: 8px;
    }

    .page-template-photo-carousel .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .photo-navigation {
        width: 90%;
    }

    .enlarged-page {
        margin-top: -18px;
    }

    .nav-btn {
        width: 30px;
        height: 30px;
    }

    .page-template-photo-carousel .site-footer {
        margin-top: -115px;
    }

    .page-template-news-page .footer-nav.footnav {
        gap: 4px;
    }
}


/* ==========================================================================
   18. EXTRA SMALL MOBILE STYLES (max-width: 375px)
   ========================================================================== */
@media (max-width: 375px) {
    .container {
        max-width: 343px;
    }

    .page-template-photo-gallery .container {
        padding: 0 8px;
        max-width: none;
    }

    .page-template-photo-carousel .container {
        padding: 0 8px;
        max-width: none;
    }

    .page {
        max-width: none;
    }

    .ann-date {
        font-size: 16px;
    }

    *[id] {
        scroll-margin-top: 90px;
    }

    .topbar-content {
        min-height: 60px;
    }

    .page-template-photo-gallery .topbar-content {
        padding: 0 8px;
    }

    .page-template-photo-carousel .topbar-content {
        padding: 0 8px;
    }

    .topbar-content .logo img {
        width: 100px;
    }

    .hero img {
        margin-top: 67px;
    }

    .announcements {
        margin: 18px;
        font-size: 18px;
    }

    .page-template-news-page .announcement-container {
        padding: 0px 30px 20px;
    }

    .section-announcement {
        margin: 75px auto 40px auto;
    }

    /* --- Photo Gallery --- */
    .page-template-photo-gallery .gallery-title h2 {
        font-size: 18px;
        padding: 6px 12px;
        margin-top: 4px;
    }

    .page-template-photo-carousel .gallery-title h2 {
        font-size: 16px;
        padding: 4px 8px;
        top: -20px;
    }

    .gallery {
        border-radius: 6px;
    }

    .page-template-photo-gallery .gallery .desc {
        padding: 12px;
        font-size: 13px;
    }

    .gallery img {
        height: 180px;
        object-fit: cover;
    }

    .page-template-photo-gallery .gallery-container {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0;
        margin-top: -15px;
    }

    .photo-navigation {
        width: 95%;
    }

    /* --- Announcement --- */
    .page-template-news-page .ann-date, 
    .page-template-news-page .ann-title, 
    .page-template-news-page .ann-description {
        font-size: 14px;
    }

    /* --- Greeting --- */
    .greeting .greet-name {
        font-size: 16px;
    }

    .greeting ul,
    .greeting .info {
        font-size: 14px;
    }

    /* --- Instructor --- */
    .card-instructor .name {
        font-size: 16px;
    }

    .card-instructor p {
        font-size: 14px;
    }

    .section-heading.ins,
    .alumni-heading {
        font-size: 18px;
    }

    .section-title-pill,
    .greeting-title-pill,
    .user-guide-heading,
    .access-title-pill {
        font-size: 18px;
        padding: 6px 16px;
    }

    /* --- Alumni --- */
    .alumni-card {
        padding: 10px;
        position: relative;
    }

    .column-alumni:nth-child(1),
    .column-alumni:nth-child(2) {
        width: calc(50% - 5px);
    }

    .photo-placeholder img {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 120px;
        aspect-ratio: 375/446;
        border-radius: 15px;
        object-fit: cover;
    }

    .column-alumni .description {
        font-size: 14px;
        margin-top: 10;
    }

    .credit .text-below {
        font-size: 12px;
        margin-top: 0;
        text-align: right;
    }

    .avatar {
        width: 100%;
        height: 190px;
        margin: 0 auto;
        overflow: hidden;
    }

    .avatar img {
        width: 150px;
        height: 180px;
    }

    /* --- Access --- */
    .section-access {
        margin: 30px auto 30px auto;
    }

    .access-card {
        margin: 30px 0 30px 0;
    }

    .page-template-news-page .section-announcement {
        margin: 75px auto 40px auto;
    }

    /* --- User Guide --- */
    .user-guide .user {
        font-size: 16px;
    }

    .user-guide table td {
        font-size: 14px;
    }

    .user-guide .user-note {
        font-size: 14px;
    }

    .acc-list li {
        font-size: 14px;
    }

    /* --- Footer --- */
    .page-template-home .footer-nav.footnav {
        gap: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-template-news-page .footer-nav.footnav {
        gap: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-template-photo-gallery .footer-nav.footnav {
        gap: 0;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-template-photo-carousel .footer-nav.footnav {
        gap: 0;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav.footnav a {
        font-size: 16px;
    }

    .page-template-photo-carousel .footer-nav.footnav a {
        font-size: 14px;
    }

    .footer-secrow {
        padding: 10px 0;
    }

    .page-template-photo-carousel .footer-secrow {
        padding: 15px 0;
    }

    .page-template-photo-gallery .footer-secrow {
        padding: 15px 0;
    }

    .page-template-photo-gallery .footer-downrow {
        padding: 0 8px;
    }

    .page-template-photo-carousel .footer-downrow {
        padding: 0 8px;
    }

    .footer-logotext img {
        width: 110px;
    }

    .page-template-news-page .footer-logotext img {
        width: 100px;
    }

    .page-template-home .footer-logotext img {
        width: 100px;
    }

    .qr-code {
        width: 80px;
        height: 80px;
        font-size: 10px;
    }

    .carousel-container {
        height: 240px;
        margin: 32px;
    }

    .page-template-photo-carousel .carousel-indicators {
        bottom: 125px;
        gap: 6px;
    }

    .page-template-photo-carousel .carousel-indicator {
        width: 6px;
        height: 6px;
    }

    .carousel-nav-arrow {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    .carousel-nav-arrow.prev {
        left: 25px;
    }

    .carousel-nav-arrow.next {
        right: 25px;
    }

    .carousel-slide {
        width: 200px;
        height: 140px;
    }

    .carousel-slide.next {
        left: 90%;
        width: 60%;
        transform: translateX(-50%) translateZ(-20px) rotateY(-45deg) scale(0.55);
        opacity: 0.4;
    }

    .carousel-slide.prev {
        left: 10%;
        width: 60%;
        transform: translateX(-50%) translateZ(-20px) rotateY(45deg) scale(0.55);
        opacity: 0.4;
    }
}