*{
    box-sizing:border-box
}

@view-transition{
    navigation: auto;
}

body{
    margin:0;
    font-family:Arial,sans-serif;
    color:#253342;
    background:#f6f8fa;
    line-height:1.6
}

a{
    color:inherit
}

.container{
    width:min(1180px,92%);
    margin:auto
}

.site-header{
    background:#fff;
    border-bottom:1px solid #ddd;
    position:sticky;
    top:0;z-index:20
}

.header-inner{
    min-height:82px;
    display:flex;
    align-items:center;
    gap:22px
}

.logo img{
    width:80px;
    height:auto;
    display:block
}

/*.header-search{
    display:flex;
    flex:1;
    max-width:360px
}

.header-search input{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px 0 0 6px
}

.header-search button{
    border:1px solid #ccc;
    background:#eee;
    padding:0 14px;
    border-radius:0 6px 6px 0
}*/
/*.header-search .live-search { position: relative; flex: 1; }

.suggestions {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  min-width: 280px; z-index: 1000;
  background: #fff; border: 1px solid #ddd; border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12); margin-top: 4px; overflow: hidden;
}
.suggestions a {
  display: block; padding: 10px 14px; color: #222; text-decoration: none;
}
.suggestions a:hover,
.suggestions a.active { background: #f3f6f4; }
.suggestions .tag {
  display: inline-block; font-size: .7rem; text-transform: uppercase;
  background: #e5efe9; color: #0b6e4f; padding: 2px 6px; border-radius: 4px;
  margin-right: 6px;
}
.suggestions .empty { padding: 10px 14px; color: #777; font-size: .9rem; }*/

/*.header-search { position: relative; }

.suggestions {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  min-width: 280px; z-index: 9999;
  background: #fff; border: 1px solid #ddd; border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15); margin-top: 4px; 
}
.suggestions a {
  display: block; padding: 10px 14px; color: #222; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggestions a:hover, .suggestions a.active { background: #f3f6f4; }
.suggestions .tag {
  display: inline-block; font-size: .7rem; text-transform: uppercase;
  background: #e5efe9; color: #0b6e4f; padding: 2px 6px; border-radius: 4px; margin-right: 8px;
}
.suggestions .empty { padding: 10px 14px; color: #777; font-size: .9rem; }*/

/*.header-search {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 360px;
  direction: ltr;
}
.header-search input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  text-align: left;
  direction: ltr;
  float: none;
}
.header-search button {
  border: 1px solid #ccc;
  background: #eee;
  padding: 0 14px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.suggestions {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  min-width: 280px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  margin-top: 4px;
  overflow: hidden;
  text-align: left;
}
.suggestions a {
  display: block;
  padding: 10px 14px;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestions a:hover, .suggestions a.active { background: #f3f6f4; }
.suggestions .tag {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  background: #e5efe9;
  color: #0b6e4f;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
}
.suggestions .empty { padding: 10px 14px; color: #777; font-size: .9rem; }*/

.header-search {
  display: flex;
  flex: 1;
  min-width: 0;
  max-width: 360px;
  direction: ltr;
}
.header-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  text-align: left;
  direction: ltr;
}
.header-search button {
  border: 1px solid #ccc;
  background: #eee;
  padding: 0 14px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

nav{
    display:flex;
    gap:15px;
    align-items:center;
    flex-wrap:wrap;
    margin-left:auto
}

nav a{
    text-decoration:none;
    font-weight:600
}

.admin-login-btn,.btn{
    background:#17324d;
    color:#fff;
    padding:9px 14px;
    border-radius:6px;
    text-decoration:none;
    border:0;
    cursor:pointer
}

main{
    padding:45px 0
}

.card,.login{
    background:#fff;
    padding:24px;
    border-radius:10px;
    box-shadow:0 3px 15px #00000012
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:22px
}

.gallery-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 3px 15px #00000012
}

.gallery-card img,.gallery-card video{
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    background: #111
}

/*.gallery-card img,.gallery-card video{
    width:100%;
    display:block;
    max-height:300px;
    object-fit:cover;
    background:#111
}*/
/*.gallery img,
.gallery-item img {
  width: 100%;
  height: 250px;          
  object-fit: contain;    
  background: #f2f2f2;   
}*/
/* grid thumbnails */
.gallery-card .media { position: relative; cursor: zoom-in; }
.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #111;
    display: block;
}
.gallery-card video { pointer-events: none; } /* the click goes to the wrapper */

.play-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 24px;
    color: #fff;
    background: rgba(0,0,0,.6);
    border-radius: 50%;
    padding-left: 4px;
    pointer-events: none;
}

/* modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.lightbox.open { display: flex; }

.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img,
.lightbox video {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    margin: 0 auto;
}
.lightbox video { display: none; background: #000; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 15px; line-height: 1.4; }
.lightbox figcaption small { color: #ccc; }

.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    line-height: 44px;
    padding: 0;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

@media (max-width: 600px) {
    .lb-nav { top: auto; bottom: 16px; transform: none; }
}

.caption{
    padding:15px;
    font-weight:700
}

.gallery-actions{
    padding:0 15px 15px;
    display:flex;
    gap:8px;
    flex-wrap:wrap
}

.btn-secondary{
    background:#e8edf2;
    color:#17324d
}

.btn-danger{
    background:#a82323;
    color:#fff
}

.admin{
    display:flex;
    min-height:100vh
}

.admin aside{
    width:230px;
    background:#17324d;
    color:#fff;
    padding:25px
}

.admin aside a{
    display:block;
    padding:10px 0;
    text-decoration:none
}

.admin main{
    flex:1;
    padding:35px
}

form label{
    display:block;
    font-weight:700;
    margin:12px 0
}

input,textarea,select{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px
}

textarea{
    min-height:130px
}

.error{
    background:#fee2e2;
    padding:12px;
    border-radius:6px;
    margin-bottom:15px
}

.success{
    background:#dcfce7;
    padding:12px;
    border-radius:6px;
    margin-bottom:15px
}

.login{
    max-width:600px;
    margin:70px auto
}

.site-footer{
    background:#17324d;
    color:#fff;
    margin-top:50px
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
    padding:45px 0
}

.footer-logo{
    width:160px;
    background:#fff;
    border-radius:6px
}

.footer-links ul{
    list-style:none;
    padding:0
}

.footer-links li{
    margin:7px 0
}

.footer-links a{
    text-decoration:none
}

.social-icons{
    display:flex;
    gap:10px
}

.social-icons a{
    width:38px;
    height:38px;
    border:1px solid #ffffff55;
    border-radius:50%;
    display:grid;
    place-items:center;
    text-decoration:none
}

.footer-bottom{
    border-top:1px solid #ffffff22;
    padding:15px 0
}

@media(max-width:850px){
    .header-inner{
        flex-wrap:wrap;
        padding:12px 0
    }
    .header-search{
        order:3;
        max-width:none;
        flex-basis:100%
    }
    .admin{
        display:block
    }
    .admin aside{
        width:100%
    }
    .footer-grid{
        grid-template-columns:1fr
    }
}


.welcome-grid{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
    gap:45px;
    align-items:center;
    min-height:420px;
    padding:25px 0 55px
}

.welcome-content h1{
    font-size:clamp(2.2rem,5vw,4rem);
    line-height:1.1;
    margin:0 0 20px
}

.welcome-content p{
    font-size:1.1rem;
    max-width:650px;
    margin:0 0 25px
}

.welcome-animation{
    min-height:350px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:16px;
    background:#eef3f7
}

.welcome-animation img{
    width:100%;
    max-height:390px;
    object-fit:cover;
    display:block;
    animation:welcomeFloat 5s ease-in-out infinite
}
@keyframes welcomeFloat{
    0%,100%{
        transform:scale(1) translateY(0)
    }50%{
        transform:scale(1.04) translateY(-8px)
    }
}


.home-news{
    padding:25px 0 45px
}

.home-news>h2{
    margin-bottom:22px
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px
}

.news-card{
    padding:0;
    overflow:hidden
}

.news-image{
    width:100%;
    height:210px;
    overflow:hidden;
    background:#eef3f7
}

.news-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block
}

.news-content{
    padding:20px
}

.news-content h3{
    margin-top:0
}

.news-content p{
    margin-bottom:18px
}
@media(max-width:850px){
    .welcome-grid{
        grid-template-columns:1fr;gap:25px
    }
    .welcome-animation{
        min-height:280px
    }
    .news-grid{
        grid-template-columns:1fr
    }
}

.c-partnership {
  position: relative;
  width: 100%;
  overflow: hidden; 
}

.c-partnership img {
  position: relative;
  animation: wrapAround 8s linear infinite;
}

@keyframes wrapAround {
  0% {
    transform: translateX(-100%);
    left: 0%;
  }
  100% {
    transform: translateX(0%);
    left: 100%;
  }
}

.admin-summary{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:22px
}

.admin-page-heading{
    display:flex;
    justify-content:space-between;align-items:center;
    gap:15px;flex-wrap:wrap;
    margin-bottom:20px
}

.event-admin-grid,.public-events-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:22px;
    align-items:start
}

.event-admin-card,.public-event-card{
    padding:0;
    overflow:hidden
}

/*.event-admin-image,.public-event-image{
    display:block;
    width:100%;
    height:300px;
    object-fit:contain;
    background:#eef3f7
    }*/

  /*.event-admin-image,.public-event-image{
    display:block;
    width:300px;
    height:300px;
    object-fit:contain;
    background:#eef3f7;
    margin:20px 0 0 20px;  
}*/
  .public-event-card,.event-admin-card{display:flex;align-items:flex-start;gap:15px;padding:15px}
  .event-admin-image,.public-event-image{flex:0 0 100px;width:100%;height:350px;object-fit:contain;margin:0}
  .event-admin-content,.public-event-content{padding:0;flex:1}
/*.event-admin-content,.public-event-content{
    padding:20px
}*/
.event-admin-content h2,.public-event-content h2{
    margin-top:0
}

.event-image-empty{
    min-height:150px;
    background:#eef3f7;
    display:grid;
    place-items:center;
    color:#536477
}

.event-current-image{
    margin-bottom:18px
}

.event-current-image img{
    max-width:100%;
    max-height:300px;
    object-fit:contain;
    display:block
}

.checkbox-label{
    display:flex;
    align-items:center;
    gap:10px
}

.checkbox-label input{
    width:auto
}

@media(max-width:850px){
    .admin-page-heading{
        align-items:flex-start
    }
    .event-admin-grid,.public-events-grid{
        grid-template-columns:1fr
    }
}

.event-search {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 380px;      
}

.event-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
}

.event-search button {
    padding: 8px 14px;
}

.event-zoom { cursor: zoom-in; }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.lightbox.open { display: flex; }

.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img {
    max-width: 92vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 15px; line-height: 1.5; }
.lightbox .lb-meta { color: #ccc; font-size: 14px; }

.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    line-height: 44px;
    padding: 0;
}

.lb-close:hover, .lb-nav:hover { 
    background: rgba(255,255,255,.28); 
}

.lb-close {
     top: 16px;
      right: 16px; 
    }

.lb-nav { 
    top: 50%; 
    transform: translateY(-50%);
 }
.lb-prev {
     left: 16px;
     }
.lb-next { 
    right: 16px; 
}

@media (max-width: 600px) {
    .lb-nav { top: auto; bottom: 16px; transform: none; }
}






