/* 7SGallery v1.10.0 — WCAG Accessibility Layer */
.sgallery-page,
.sgallery-single-page{
  --sg-gap: clamp(18px, 2.4vw, 32px);
  --sg-radius: var(--wp--custom--border-radius, var(--wp--preset--spacing--20, .625rem));
  --sg-border: color-mix(in srgb, currentColor 15%, transparent);
  --sg-muted: color-mix(in srgb, currentColor 60%, transparent);
  --sg-soft: color-mix(in srgb, currentColor 7%, transparent);
  --sg-theme-accent: currentColor;
  --sg-theme-bg: transparent;
  --sg-button-radius: var(--sg-radius);
  --sg-input-radius: var(--sg-radius);
  --sg-container-width: 100%;
  width:100%;
  color:var(--sg-theme-color, inherit);
  font:var(--sg-theme-font, inherit);
  background:transparent;
  box-sizing:border-box;
}
.sgallery-page * ,
.sgallery-single-page *{box-sizing:border-box;}
.sgallery-page{padding:var(--sgallery-top-space, 0px) 0 40px;}
.sgallery-container{width:min(100%, var(--sg-container-width, 100%));max-width:100%;margin-inline:auto;}
.sgallery-single-container{width:min(100%, var(--sg-theme-content-width, 100%));max-width:100%;margin-inline:auto;padding-inline:var(--sg-template-inline-padding, 0px);}
.sgallery-intro{margin:0 0 24px;}
.sgallery-intro h1,.sgallery-intro p{color:inherit;font-family:inherit;}
.sgallery-intro h1{margin:0 0 .35em;font-family:var(--sg-theme-heading-font, inherit);font-weight:var(--sg-theme-heading-weight, inherit);font-size:clamp(28px,4vw,44px);line-height:1.1;}
.sgallery-intro p{margin:0;color:var(--sg-muted);}
.sgallery-filters{display:flex;flex-wrap:wrap;gap:.625rem;margin:0 0 28px;}
.sgallery-filter{display:inline-flex;align-items:center;justify-content:center;min-height:2.25rem;padding:.45rem .9rem;border:1px solid var(--sg-border);border-radius:var(--sg-button-radius, 999px);color:inherit;text-decoration:none;background:transparent;font:inherit;line-height:1;box-shadow:none;}
.sgallery-filter:hover,.sgallery-filter.is-active{background:var(--sg-soft);color:var(--sg-theme-accent, inherit);text-decoration:none;}
.sgallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sg-gap);}
.sgallery-cards-2 .sgallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.sgallery-cards-4 .sgallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.sgallery-card{min-width:0;color:inherit;background:transparent;border:0;box-shadow:none;padding:0;overflow:hidden;font:inherit;}
.sgallery-theme-minimal .sgallery-card,.sgallery-card-style-minimal .sgallery-card{border:1px solid var(--sg-border);border-radius:var(--sg-radius);background:transparent;}
.sgallery-theme-inherit .sgallery-card{border-color:var(--sg-border);}
.sgallery-card__media{position:relative;display:block;overflow:hidden;background:var(--sg-soft);border-radius:inherit;color:inherit;text-decoration:none;}
.sgallery-card-style-minimal .sgallery-card__media{border-bottom-left-radius:0;border-bottom-right-radius:0;}
.sgallery-ratio-16-9 .sgallery-card__media,.sgallery-card__media{aspect-ratio:16/9;}
.sgallery-ratio-16-10 .sgallery-card__media{aspect-ratio:16/10;}
.sgallery-ratio-4-3 .sgallery-card__media{aspect-ratio:4/3;}
.sgallery-ratio-1-1 .sgallery-card__media{aspect-ratio:1/1;}
.sgallery-ratio-auto .sgallery-card__media{aspect-ratio:16/9;}
.sgallery-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;}
.sgallery-card__placeholder{display:flex;align-items:center;justify-content:center;min-height:180px;color:var(--sg-muted);font-size:.9em;}
.sgallery-card__placeholder:after{content:'Görsel eklenmedi';}
.sgallery-card__body{padding:14px 0 0;}
.sgallery-card-style-minimal .sgallery-card__body{padding:16px;}
.sgallery-card__title{margin:0;font-family:var(--sg-theme-heading-font, inherit);font-size:1.15em;line-height:1.3;font-weight:var(--sg-theme-heading-weight, 600);color:inherit;}
.sgallery-card__title a{color:inherit;text-decoration:none;}
.sgallery-card__title a:hover{text-decoration:underline;}
.sgallery-play{position:absolute;inset:50% auto auto 50%;width:46px;height:46px;transform:translate(-50%,-50%);border-radius:50%;background:rgba(0,0,0,.62);}
.sgallery-play:before{content:'';position:absolute;left:19px;top:14px;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:13px solid #fff;}
.sgallery-play-style-vurgulu .sgallery-play{width:52px;height:52px;background:rgba(0,0,0,.72);}
.sgallery-play-style-gizle .sgallery-play{display:none;}
.sgallery-empty{padding:20px;border:1px solid var(--sg-border);border-radius:var(--sg-radius);color:var(--sg-muted);}

body.sgallery-single-template .related-posts,
body.sgallery-single-template .post-navigation{display:none!important;}
.sgallery-single-page{padding:40px 0;}
.sgallery-detail{color:inherit;font:inherit;}
.sgallery-detail-header{margin:0 0 22px;}
.sgallery-single-meta{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 10px;color:var(--sg-muted);font-size:.92em;}
.sgallery-single-title{margin:0;color:inherit;font-family:var(--sg-theme-heading-font, inherit);font-weight:var(--sg-theme-heading-weight, inherit);font-size:clamp(28px,4vw,48px);line-height:1.12;}
.sgallery-single-excerpt{margin:12px 0 0;color:var(--sg-muted);font-size:1.05em;line-height:1.65;}
.sgallery-featured-media{margin:22px 0;}
.sgallery-featured-media img,.sgallery-single-image,.sgallery-video,.sgallery-oembed iframe{display:block;width:100%;border-radius:var(--sg-radius);overflow:hidden;}
.sgallery-oembed iframe{aspect-ratio:16/9;height:auto;border:0;}
.sgallery-content{margin:22px 0;color:inherit;}
.sgallery-card-style-minimal .sgallery-content{padding:22px;border:1px solid var(--sg-border);border-radius:var(--sg-radius);background:transparent;}
.sgallery-content :where(h1,h2,h3,h4,h5,h6,p,li,a,strong,em){color:inherit;font-family:inherit;}
.sgallery-content p{line-height:1.75;}
.sgallery-album-section{margin:28px 0;}
.sgallery-section-heading{margin:0 0 16px;}
.sgallery-section-heading h2{margin:0;color:inherit;font-family:var(--sg-theme-heading-font, inherit);font-weight:var(--sg-theme-heading-weight, inherit);font-size:clamp(22px,2.6vw,32px);}
.sgallery-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.sgallery-album-item{position:relative;display:block;aspect-ratio:1.2/1;overflow:hidden;border-radius:var(--sg-radius);background:var(--sg-soft);}
.sgallery-album-item img{display:block;width:100%;height:100%;object-fit:cover;}
.sgallery-zoom-icon{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:17px;}
.sgallery-share{display:flex;justify-content:center;gap:10px;margin:28px 0;}
.sgallery-share a{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--sg-border);border-radius:50%;color:inherit;text-decoration:none;background:transparent;}
.sgallery-share a:hover{background:var(--sg-soft);}
.sgallery-share svg{width:16px;height:16px;fill:currentColor;}
.sgallery-detail-actions{margin:24px 0 0;}
.sgallery-back{display:inline-flex;align-items:center;padding:8px 14px;border:1px solid var(--sg-border);border-radius:var(--sg-button-radius, 999px);color:inherit;text-decoration:none;background:transparent;}
.sgallery-back:hover{background:var(--sg-soft);color:inherit;text-decoration:none;}
.sgallery-media-empty{display:grid;place-items:center;min-height:260px;border:1px solid var(--sg-border);border-radius:var(--sg-radius);color:var(--sg-muted);}
.sgallery-media-link{color:inherit;}
.sgallery-related-videos{margin:34px 0;}
.sgallery-related-videos h2{color:inherit;font-family:inherit;}
.sgallery-related-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.sgallery-related-video-card a{display:block;color:inherit;text-decoration:none;}
.sgallery-related-video-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--sg-radius);margin-bottom:8px;}
.seven-sgallery-lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.88);z-index:99999;padding:54px;}
.seven-sgallery-lightbox.is-open{display:flex;}
.seven-sgallery-lightbox__img{max-width:min(1100px,92vw);max-height:82vh;border-radius:4px;}
.seven-sgallery-lightbox button{position:absolute;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);color:#fff;border-radius:50%;width:44px;height:44px;font-size:28px;line-height:1;cursor:pointer;}
.seven-sgallery-lightbox__close{top:20px;right:20px;}
.seven-sgallery-lightbox__prev{left:20px;top:50%;transform:translateY(-50%);}
.seven-sgallery-lightbox__next{right:20px;top:50%;transform:translateY(-50%);}
.seven-sgallery-lightbox__counter{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);color:#fff;background:rgba(255,255,255,.12);border-radius:999px;padding:7px 14px;}
.sgallery-theme-plain .sgallery-card,
.sgallery-card-style-plain .sgallery-card,
.sgallery-theme-plain .sgallery-content{border:0;background:transparent;border-radius:0;padding:0;}
@media (max-width: 900px){.sgallery-grid,.sgallery-cards-4 .sgallery-grid,.sgallery-album-grid,.sgallery-related-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 640px){.sgallery-container,.sgallery-single-container{width:100%;max-width:100%;}.sgallery-grid,.sgallery-cards-2 .sgallery-grid,.sgallery-cards-4 .sgallery-grid,.sgallery-album-grid,.sgallery-related-video-grid{grid-template-columns:1fr}.sgallery-single-page{padding:24px 0}.sgallery-content{padding:16px}.seven-sgallery-lightbox{padding:20px}.seven-sgallery-lightbox__prev,.seven-sgallery-lightbox__next{display:none}}
@supports not (background: color-mix(in srgb, black 10%, transparent)){
  .sgallery-page,
  .sgallery-single-page{
    --sg-border: rgba(127,127,127,.28);
    --sg-muted: inherit;
    --sg-soft: rgba(127,127,127,.08);
  }
}


/* Accessibility / WCAG layer */
.sgallery-sr-only,
.seven-sgallery-lightbox__label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.sgallery-page :where(a,button,input,select,textarea):focus-visible,
.sgallery-single-page :where(a,button,input,select,textarea):focus-visible,
.seven-sgallery-lightbox button:focus-visible{outline:2px solid currentColor;outline-offset:3px;box-shadow:none;}
.sgallery-filter[aria-current="true"]{font-weight:700;}
.sgallery-album-item:focus-visible .sgallery-zoom-icon,
.sgallery-card__media:focus-visible .sgallery-play{transform:translate(-50%,-50%) scale(1.06);}
.seven-sgallery-lightbox[aria-hidden="true"]{display:none;}
.seven-sgallery-lightbox[aria-hidden="false"]{display:flex;}
.seven-sgallery-lightbox__img{outline:0;}
@media (prefers-reduced-motion: reduce){
  .sgallery-page *,
  .sgallery-single-page *,
  .seven-sgallery-lightbox *{scroll-behavior:auto!important;transition:none!important;animation:none!important;}
}

/* 7SGallery v2.1 Album System */
.sgallery-albums-page .sgallery-album-card__stats,
.sgallery-album-card__stats{margin:.35rem 0 0;font-size:.925em;color:color-mix(in srgb,currentColor 72%,transparent)}
.sgallery-album-hero{display:grid;grid-template-columns:minmax(220px,34%) 1fr;gap:clamp(18px,3vw,36px);align-items:center;margin:0 0 clamp(24px,4vw,44px)}
.sgallery-album-hero__cover{overflow:hidden;border-radius:var(--sg-theme-radius,inherit);background:color-mix(in srgb,currentColor 6%,transparent)}
.sgallery-album-hero__cover img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.sgallery-album-hero__eyebrow{margin:0 0 .35rem;font-size:.85em;text-transform:uppercase;letter-spacing:.08em;color:color-mix(in srgb,currentColor 68%,transparent)}
.sgallery-album-hero h1{margin:0 0 .55rem;font-family:var(--sg-theme-heading-font,inherit);font-weight:var(--sg-theme-heading-weight,inherit);color:inherit}
.sgallery-album-hero p{color:inherit}
.sgallery-album-stats{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.sgallery-album-stats span{display:inline-flex;align-items:center;border:1px solid color-mix(in srgb,currentColor 16%,transparent);border-radius:999px;padding:.35rem .75rem;font-size:.9em;color:inherit;background:transparent}
@media (max-width: 700px){.sgallery-album-hero{grid-template-columns:1fr}.sgallery-album-hero__cover img{aspect-ratio:16/9}}

/* 7SGallery v2.1.4 Album Navigation */
.sgallery-home-nav{display:flex;flex-wrap:wrap;gap:.625rem;margin:0 0 28px;padding:0;border:0;color:inherit;font:inherit;}
.sgallery-home-nav__item{display:inline-flex;align-items:center;gap:.45rem;min-height:2.4rem;padding:.5rem 1rem;border:1px solid var(--sg-border);border-radius:var(--sg-button-radius,999px);background:transparent;color:inherit;text-decoration:none;font:inherit;line-height:1;box-shadow:none;}
.sgallery-home-nav__item:hover,.sgallery-home-nav__item.is-active{background:var(--sg-soft);color:var(--sg-theme-accent,inherit);text-decoration:none;}
.sgallery-home-nav__item[aria-current="page"]{font-weight:700;}
.sgallery-home-nav__icon{font-size:1em;line-height:1;opacity:.8;}
.sgallery-album-card__description{margin:.4rem 0 0;color:var(--sg-muted);font-size:.95em;line-height:1.5;}
@media (max-width:640px){.sgallery-home-nav{gap:.5rem}.sgallery-home-nav__item{flex:1 1 auto;justify-content:center;}}


/* 7SGallery v2.1.5 Category Navigation */
.sgallery-category-grid{align-items:stretch;}
.sgallery-category-card{padding:0;}
.sgallery-category-card__link{display:flex;gap:1rem;align-items:flex-start;height:100%;padding:1rem;border:1px solid var(--sg-border);border-radius:var(--sg-radius);color:inherit;text-decoration:none;background:transparent;}
.sgallery-category-card__link:hover{background:var(--sg-soft);color:inherit;text-decoration:none;}
.sgallery-category-card__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 2.25rem;width:2.25rem;height:2.25rem;border:1px solid var(--sg-border);border-radius:999px;line-height:1;color:inherit;}
.sgallery-category-card__content{display:flex;flex-direction:column;gap:.35rem;min-width:0;}
.sgallery-category-card__stats{font-size:.925em;color:var(--sg-muted);}
.sgallery-category-card__description{font-size:.95em;line-height:1.5;color:var(--sg-muted);}


/* 7SGallery v2.1.7 Navigation Cleanup */
.sgallery-home-nav__item,
.sgallery-home-nav__item:visited{color:inherit!important;opacity:1!important;visibility:visible!important;}
.sgallery-home-nav__item:hover,
.sgallery-home-nav__item.is-active{background:var(--sg-soft);color:inherit!important;text-decoration:none;opacity:1!important;}
.sgallery-category-context{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin:0 0 24px;padding:1rem;border:1px solid var(--sg-border);border-radius:var(--sg-radius);background:transparent;color:inherit;}
.sgallery-category-context__eyebrow{margin:0 0 .25rem;font-size:.82em;text-transform:uppercase;letter-spacing:.06em;color:var(--sg-muted);}
.sgallery-category-context h2{margin:0;color:inherit;font-family:var(--sg-theme-heading-font,inherit);font-weight:var(--sg-theme-heading-weight,inherit);}
.sgallery-category-context p{color:inherit;}
.sgallery-category-context__all{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid var(--sg-border);border-radius:var(--sg-button-radius,999px);padding:.5rem .85rem;color:inherit!important;text-decoration:none;background:transparent;}
.sgallery-category-context__all:hover{background:var(--sg-soft);text-decoration:none;color:inherit!important;}
@media (max-width:640px){.sgallery-category-context{display:block}.sgallery-category-context__all{margin-top:.75rem}}


/* v2.1.8: Album navigation cleanup and theme-safe visibility fix */
.sgallery-page .sgallery-home-nav ~ .sgallery-filters{display:none!important;}
.sgallery-home-nav__item,
.sgallery-home-nav__item:visited,
.sgallery-home-nav__item span{color:var(--sg-text,#222)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
.sgallery-home-nav__item:hover,
.sgallery-home-nav__item.is-active,
.sgallery-home-nav__item[aria-current="page"]{background:var(--sg-soft,#f5f5f5)!important;color:var(--sg-text,#222)!important;text-decoration:none!important;opacity:1!important;}
.sgallery-home-nav__item[aria-current="page"] span{color:var(--sg-text,#222)!important;opacity:1!important;}

/* v2.1.11: Category SVG Icons */
.sgallery-category-grid{margin-top:0!important;margin-bottom:0!important;}
.sgallery-category-card{padding:0!important;margin-top:0!important;margin-bottom:0!important;}
.sgallery-category-card__link{align-items:center;padding:1rem!important;}
.sgallery-category-card__icon{width:2.75rem;height:2.75rem;flex-basis:2.75rem;border:0;border-radius:0;background:transparent;color:currentColor;}
.sgallery-category-card__icon svg{display:block;width:2rem;height:2rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.sgallery-category-card__content{gap:.25rem;}

/* 7SGallery v2.1.12: Classic Light style monochrome category icons */
.sgallery-category-grid{margin-top:0!important;margin-bottom:0!important;}
.sgallery-category-card{padding:0!important;margin-top:0!important;margin-bottom:0!important;}
.sgallery-category-card__link{align-items:center!important;gap:1.1rem!important;padding:.85rem 1rem!important;min-height:72px!important;}
.sgallery-category-card__icon{width:2.6rem!important;height:2.6rem!important;flex:0 0 2.6rem!important;border:0!important;border-radius:0!important;background:transparent!important;color:currentColor!important;opacity:.92;}
.sgallery-category-card__icon svg{display:block!important;width:2.25rem!important;height:2.25rem!important;fill:none!important;stroke:currentColor!important;stroke-width:1.25!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke;}
.sgallery-category-card__content{gap:.15rem!important;}
.sgallery-category-card__stats{line-height:1.35!important;}
.sgallery-category-card__description{margin-top:.15rem!important;}

/* 7SGallery v2.4.0: Advanced Gallery Experience */
.sgallery-page.is-loading{opacity:.72;pointer-events:none;transition:opacity .18s ease;}
.sgallery-layout-masonry .sgallery-grid{display:block;columns:3;column-gap:var(--sg-gap);}
.sgallery-layout-masonry.sgallery-cards-2 .sgallery-grid{columns:2;}
.sgallery-layout-masonry.sgallery-cards-4 .sgallery-grid{columns:4;}
.sgallery-layout-masonry .sgallery-card{display:inline-block;width:100%;margin:0 0 var(--sg-gap);break-inside:avoid;}
.sgallery-layout-masonry .sgallery-card__media{aspect-ratio:auto;}
.sgallery-layout-masonry .sgallery-card__media img{height:auto;aspect-ratio:auto;object-fit:cover;}
.sgallery-load-more-wrap{display:flex;justify-content:center;margin:28px 0 0;}
.sgallery-load-more{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.65rem 1.1rem;border:1px solid var(--sg-border);border-radius:var(--sg-button-radius,999px);background:transparent;color:inherit;font:inherit;cursor:pointer;}
.sgallery-load-more:hover{background:var(--sg-soft);}
.sgallery-load-more:disabled{opacity:.55;cursor:wait;}
@media (max-width:900px){.sgallery-layout-masonry .sgallery-grid,.sgallery-layout-masonry.sgallery-cards-4 .sgallery-grid{columns:2;}}
@media (max-width:640px){.sgallery-layout-masonry .sgallery-grid,.sgallery-layout-masonry.sgallery-cards-2 .sgallery-grid,.sgallery-layout-masonry.sgallery-cards-4 .sgallery-grid{columns:1;}}
.sgallery-layout-switcher{display:inline-flex;gap:.35rem;margin-inline-start:auto;border:1px solid var(--sg-border);border-radius:var(--sg-button-radius,999px);padding:.2rem;}
.sgallery-layout-switcher__item{display:inline-flex;align-items:center;min-height:2rem;padding:.35rem .75rem;border-radius:var(--sg-button-radius,999px);color:inherit!important;text-decoration:none!important;font-size:.92em;}
.sgallery-layout-switcher__item:hover,.sgallery-layout-switcher__item.is-active{background:var(--sg-soft);color:inherit!important;}
@media (max-width:640px){.sgallery-layout-switcher{width:100%;margin-inline-start:0}.sgallery-layout-switcher__item{flex:1;justify-content:center}}

/* v2.4.1 */
.sgallery-load-end{margin:28px 0 0;text-align:center;opacity:.72;font:inherit;color:inherit;}


/* 7SGallery v2.4.2: AJAX typography stability */
.sgallery-page,
.sgallery-page .sgallery-container,
.sgallery-page .sgallery-grid,
.sgallery-page .sgallery-card,
.sgallery-page .sgallery-card__body,
.sgallery-page .sgallery-album-card,
.sgallery-page .sgallery-category-card{
  font:var(--sg-theme-font, var(--sg-stable-font, inherit));
  color:var(--sg-theme-color, var(--sg-stable-color, inherit));
}
.sgallery-page .sgallery-card__title,
.sgallery-page .sgallery-card__title a,
.sgallery-page .sgallery-album-card__description,
.sgallery-page .sgallery-album-card__stats,
.sgallery-page .sgallery-category-card__content,
.sgallery-page .sgallery-category-card__stats,
.sgallery-page .sgallery-category-card__description{
  font-family:inherit;
  color:inherit;
}
.sgallery-page .sgallery-card__title{
  font-size:1.15em;
  line-height:1.3;
  font-weight:var(--sg-theme-heading-weight, 600);
}
.sgallery-page .sgallery-album-card__description,
.sgallery-page .sgallery-category-card__description{
  font-size:.95em;
  line-height:1.5;
}
.sgallery-page .sgallery-album-card__stats,
.sgallery-page .sgallery-category-card__stats{
  font-size:.925em;
  line-height:1.35;
}

/* 7SGallery v2.5 Media Tools */
.sgallery-card__media,
.sgallery-media-frame {
    position: relative;
    display: block;
}
.sgallery-media-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* 7SGallery v2.6.0: Advanced Search & Filtering */
.sgallery-search-form{margin:0 0 24px;padding:0;color:inherit;font:inherit;}
.sgallery-search-form__row{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(160px,.8fr) minmax(160px,.8fr) auto;gap:.75rem;align-items:end;}
.sgallery-search-form__field{display:flex;flex-direction:column;gap:.35rem;min-width:0;color:inherit;font:inherit;}
.sgallery-search-form__field span{font-size:.875em;color:var(--sg-muted);line-height:1.3;}
.sgallery-search-form :where(input[type="search"],select){width:100%;min-height:2.5rem;border:1px solid var(--sg-border);border-radius:var(--sg-input-radius,var(--sg-radius));background:transparent;color:inherit;font:inherit;padding:.45rem .75rem;box-shadow:none;}
.sgallery-search-form :where(input[type="search"],select):focus{outline:2px solid currentColor;outline-offset:2px;}
.sgallery-search-form__actions{display:flex;gap:.5rem;align-items:center;min-height:2.5rem;}
.sgallery-search-form__submit,.sgallery-search-form__reset{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.45rem .85rem;border:1px solid var(--sg-border);border-radius:var(--sg-button-radius,var(--sg-radius));background:transparent;color:inherit;text-decoration:none;font:inherit;line-height:1;box-shadow:none;cursor:pointer;white-space:nowrap;}
.sgallery-search-form__submit:hover,.sgallery-search-form__reset:hover{background:var(--sg-soft);color:inherit;text-decoration:none;}
.sgallery-result-count{margin:.75rem 0 0;color:var(--sg-muted);font-size:.95em;}
@media (max-width:900px){.sgallery-search-form__row{grid-template-columns:1fr 1fr}.sgallery-search-form__field-search{grid-column:1/-1}.sgallery-search-form__actions{grid-column:1/-1;}}
@media (max-width:560px){.sgallery-search-form__row{grid-template-columns:1fr}.sgallery-search-form__field-search,.sgallery-search-form__actions{grid-column:auto}.sgallery-search-form__actions{align-items:stretch}.sgallery-search-form__submit,.sgallery-search-form__reset{flex:1;}}

/* 7SGallery v2.7.0: Advanced Album Management */
.sgallery-album-featured{display:inline-flex;align-items:center;margin-left:.5em;padding:.15em .5em;border:1px solid currentColor;border-radius:999px;font-size:.68em;font-weight:inherit;line-height:1;opacity:.72;vertical-align:middle}

/* v2.8 Sharing & Embed */
.sgallery-share,.sgallery-embed-panel{margin-top:24px;padding-top:16px;border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}
.sgallery-share h2,.sgallery-embed-panel h2{font:inherit;font-weight:600;margin:0 0 12px;color:inherit}
.sgallery-share__buttons{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sgallery-share__buttons a,.sgallery-copy-link{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:999px;background:transparent;color:inherit;text-decoration:none;font:inherit;font-size:.92em;line-height:1.2;cursor:pointer}
.sgallery-share__buttons a:hover,.sgallery-copy-link:hover{border-color:currentColor;text-decoration:none}
.sgallery-embed-panel textarea{box-sizing:border-box;width:100%;max-width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;line-height:1.45;padding:10px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:8px;background:transparent;color:inherit;resize:vertical}
.sgallery-embed-panel .sgallery-copy-link{margin-top:10px}
.sgallery-embed-preview{margin-top:14px;border:1px solid color-mix(in srgb,currentColor 12%,transparent);border-radius:10px;overflow:hidden}
.sgallery-embed-responsive{position:relative;width:100%;overflow:hidden}
.sgallery-embed-responsive iframe{display:block;max-width:100%;border:0}
.sgallery-album-card .sgallery-copy-link{margin-top:10px;font-size:.85em;min-height:30px;padding:6px 10px}

/* 7SGallery v2.8.1: Single page UX hotfix */
.sgallery-detail-actions{margin:0 0 18px;}
.sgallery-featured-media{margin:20px 0 28px;}
.sgallery-featured-media .sgallery-media-frame,
.sgallery-featured-media .sgallery-oembed,
.sgallery-featured-media .sgallery-video{max-height:clamp(360px,52vw,540px);overflow:hidden;border-radius:var(--sg-radius);background:var(--sg-soft);}
.sgallery-featured-media .sgallery-media-frame img,
.sgallery-featured-media .sgallery-single-image{width:100%;height:100%;max-height:clamp(360px,52vw,540px);object-fit:cover;object-position:center;}
.sgallery-featured-media .sgallery-oembed iframe{width:100%;height:auto;aspect-ratio:16/9;max-height:540px;}
.sgallery-album-section{margin:30px 0 18px;}
.sgallery-album-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.sgallery-album-item{aspect-ratio:16/10;border:1px solid color-mix(in srgb,currentColor 10%,transparent);}
.sgallery-share{display:flex;justify-content:center;margin:22px 0 0;padding-top:16px;border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}
.sgallery-share__buttons{justify-content:center;}
.sgallery-share h2{display:none;}
.sgallery-embed-panel{margin-top:22px;padding:18px;border:1px solid color-mix(in srgb,currentColor 12%,transparent);border-radius:12px;background:transparent;}
.sgallery-embed-panel h2{margin:0 0 14px;font:inherit;font-weight:600;color:inherit;}
.sgallery-embed-builder{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:0 0 12px;}
.sgallery-embed-builder label{display:flex;flex-direction:column;gap:5px;font:inherit;font-size:.9em;color:inherit;}
.sgallery-embed-builder input{min-height:36px;max-width:140px;padding:7px 10px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:8px;background:transparent;color:inherit;font:inherit;}
.sgallery-embed-panel textarea{min-height:76px;margin-top:4px;}
.sgallery-embed-preview-card{margin-top:16px;}
.sgallery-embed-preview-card>strong{display:block;margin:0 0 8px;font:inherit;font-weight:600;color:inherit;}
.sgallery-embed-preview{height:350px;max-height:350px;overflow:hidden;border:1px solid color-mix(in srgb,currentColor 12%,transparent);border-radius:10px;background:var(--sg-soft);}
.sgallery-embed-preview .sgallery-embed-responsive,
.sgallery-embed-preview iframe{width:100%;height:100%!important;}
.sgallery-embed-preview img{width:100%;height:100%;object-fit:cover;}
@media (max-width:900px){.sgallery-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.sgallery-featured-media .sgallery-media-frame,.sgallery-featured-media .sgallery-oembed,.sgallery-featured-media .sgallery-video,.sgallery-featured-media .sgallery-media-frame img,.sgallery-featured-media .sgallery-single-image{max-height:380px}.sgallery-album-grid{grid-template-columns:1fr}.sgallery-embed-builder{display:grid;grid-template-columns:1fr}.sgallery-embed-builder input{max-width:100%;}.sgallery-embed-preview{height:260px;}}

/* 7SGallery v2.8.2 — Single Gallery Layout Fix */
body.sgallery-single-template .sgallery-single-page{
  padding:clamp(24px,4vw,44px) 0;
}
body.sgallery-single-template .sgallery-single-container{
  width:min(100%, var(--sg-theme-content-width, 1120px));
  max-width:1120px;
  margin-inline:auto;
  padding-inline:clamp(16px,3vw,28px);
}
body.sgallery-single-template .sgallery-detail-header{
  margin-bottom:clamp(16px,2.2vw,24px);
}
body.sgallery-single-template .sgallery-single-title{
  font-size:clamp(30px,3.2vw,46px);
}
body.sgallery-single-template .sgallery-featured-media{
  margin:18px 0 clamp(28px,4vw,42px);
}
body.sgallery-single-template .sgallery-featured-media .sgallery-media-frame,
body.sgallery-single-template .sgallery-featured-media .sgallery-oembed,
body.sgallery-single-template .sgallery-featured-media .sgallery-video{
  width:100%;
  max-width:960px;
  margin-inline:auto;
  aspect-ratio:16/9;
  max-height:520px;
  overflow:hidden;
  border-radius:12px!important;
  background:var(--sg-soft);
}
body.sgallery-single-template .sgallery-featured-media .sgallery-media-frame img,
body.sgallery-single-template .sgallery-featured-media .sgallery-single-image,
body.sgallery-single-template .sgallery-featured-media img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover;
  object-position:center;
  border-radius:12px!important;
}
body.sgallery-single-template .sgallery-featured-media .sgallery-oembed iframe,
body.sgallery-single-template .sgallery-featured-media .sgallery-video{
  width:100%;
  height:100%!important;
  border:0;
  border-radius:12px!important;
}
body.sgallery-single-template .sgallery-album-section{
  margin:0 0 clamp(24px,3vw,36px);
}
body.sgallery-single-template .sgallery-section-heading{
  margin-bottom:14px;
}
body.sgallery-single-template .sgallery-album-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  align-items:start;
}
body.sgallery-single-template .sgallery-album-item{
  aspect-ratio:16/10;
  width:100%;
  max-width:100%;
  border-radius:10px!important;
  border:1px solid color-mix(in srgb,currentColor 12%,transparent);
  background:var(--sg-soft);
}
body.sgallery-single-template .sgallery-album-grid:has(.sgallery-album-item:only-child){
  grid-template-columns:minmax(220px,360px);
}
body.sgallery-single-template .sgallery-album-item img{
  width:100%!important;
  height:100%!important;
  object-fit:cover;
  border-radius:10px!important;
}
body.sgallery-single-template .sgallery-share{
  justify-content:flex-start;
  margin:clamp(20px,3vw,34px) 0 0;
  padding-top:18px;
}
body.sgallery-single-template .sgallery-share__buttons{
  justify-content:flex-start;
}
body.sgallery-single-template .sgallery-share__buttons a,
body.sgallery-single-template .sgallery-copy-link{
  min-height:38px;
  padding:8px 14px;
}
body.sgallery-single-template .sgallery-embed-panel{
  margin-top:16px;
  padding:0;
  border:1px solid color-mix(in srgb,currentColor 12%,transparent);
  border-radius:12px;
  background:transparent;
  overflow:hidden;
}
body.sgallery-single-template .sgallery-embed-panel summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:46px;
  padding:12px 16px;
  cursor:pointer;
  font:inherit;
  font-weight:600;
  color:inherit;
}
body.sgallery-single-template .sgallery-embed-panel summary::-webkit-details-marker{display:none;}
body.sgallery-single-template .sgallery-embed-panel summary:after{
  content:'+';
  font-weight:400;
  opacity:.7;
}
body.sgallery-single-template .sgallery-embed-panel[open] summary:after{content:'−';}
body.sgallery-single-template .sgallery-embed-panel__inner{
  padding:0 16px 16px;
  border-top:1px solid color-mix(in srgb,currentColor 10%,transparent);
}
body.sgallery-single-template .sgallery-embed-builder{
  margin-top:14px;
}
body.sgallery-single-template .sgallery-embed-preview{
  height:300px;
  max-height:300px;
}
@media (max-width:640px){
  body.sgallery-single-template .sgallery-single-container{padding-inline:16px;}
  body.sgallery-single-template .sgallery-featured-media .sgallery-media-frame,
  body.sgallery-single-template .sgallery-featured-media .sgallery-oembed,
  body.sgallery-single-template .sgallery-featured-media .sgallery-video{max-height:360px;}
  body.sgallery-single-template .sgallery-album-grid{grid-template-columns:1fr;}
  body.sgallery-single-template .sgallery-embed-preview{height:220px;max-height:220px;}
}

/* 7SGallery v2.8.3 — Single Layout Width & Share Icons Fix */
body.sgallery-single-template .sgallery-single-container{
  width:min(100%, var(--sg-container-width, var(--sg-theme-content-width, 100%)));
  max-width:100%!important;
  margin-inline:auto;
  padding-inline:clamp(16px,3vw,28px);
}
body.sgallery-single-template .sgallery-detail{
  width:100%;
  max-width:100%;
}
body.sgallery-single-template .sgallery-featured-media .sgallery-media-frame,
body.sgallery-single-template .sgallery-featured-media .sgallery-oembed,
body.sgallery-single-template .sgallery-featured-media .sgallery-video{
  width:100%!important;
  max-width:100%!important;
  margin-inline:0!important;
}
body.sgallery-single-template .sgallery-album-section,
body.sgallery-single-template .sgallery-share,
body.sgallery-single-template .sgallery-embed-panel,
body.sgallery-single-template .sgallery-content{
  width:100%;
  max-width:100%;
}
body.sgallery-single-template .sgallery-share{
  justify-content:flex-start;
  margin:clamp(20px,3vw,34px) 0 0;
  padding-top:18px;
  border-top:1px solid color-mix(in srgb,currentColor 12%,transparent);
}
body.sgallery-single-template .sgallery-share__buttons{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:10px 14px;
}
body.sgallery-single-template .sgallery-share__icons{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
body.sgallery-single-template .sgallery-share-icon{
  display:inline-grid!important;
  place-items:center;
  width:38px!important;
  height:38px!important;
  min-width:38px;
  min-height:38px;
  padding:0!important;
  border:1px solid color-mix(in srgb,currentColor 18%,transparent)!important;
  border-radius:999px!important;
  background:transparent!important;
  color:inherit!important;
  text-decoration:none!important;
  line-height:1!important;
  font-size:0!important;
}
body.sgallery-single-template .sgallery-share-icon:hover,
body.sgallery-single-template .sgallery-share-icon:focus-visible{
  border-color:currentColor!important;
  background:color-mix(in srgb,currentColor 7%,transparent)!important;
  text-decoration:none!important;
}
body.sgallery-single-template .sgallery-share-icon svg,
body.sgallery-single-template .sgallery-copy-link svg{
  width:16px;
  height:16px;
  display:block;
  fill:currentColor;
  flex:none;
}
body.sgallery-single-template .sgallery-share__copy{
  display:flex;
  align-items:center;
}
body.sgallery-single-template .sgallery-copy-link{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:8px 14px!important;
  border:1px solid color-mix(in srgb,currentColor 18%,transparent)!important;
  border-radius:999px!important;
  background:transparent!important;
  color:inherit!important;
  text-decoration:none!important;
  font:inherit!important;
  font-size:.92em!important;
  line-height:1.2!important;
  cursor:pointer;
  white-space:nowrap;
}
body.sgallery-single-template .sgallery-copy-link:hover,
body.sgallery-single-template .sgallery-copy-link:focus-visible{
  border-color:currentColor!important;
  background:color-mix(in srgb,currentColor 7%,transparent)!important;
}
@media (max-width:640px){
  body.sgallery-single-template .sgallery-share__buttons,
  body.sgallery-single-template .sgallery-share__icons,
  body.sgallery-single-template .sgallery-share__copy{
    justify-content:center;
  }
  body.sgallery-single-template .sgallery-share{
    justify-content:center;
  }
}


/* 7SGallery v2.8.4 — Related Videos Radius Fix */
body.sgallery-single-template .sgallery-related-video-grid{
  align-items:start;
}
body.sgallery-single-template .sgallery-related-video-card{
  min-width:0;
}
body.sgallery-single-template .sgallery-related-video-card a{
  display:block;
  color:inherit!important;
  text-decoration:none!important;
}
body.sgallery-single-template .sgallery-related-video-card img,
body.sgallery-single-template .sgallery-related-video-card a img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:10px!important;
  clip-path:none!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
  overflow:hidden!important;
  margin:0 0 8px!important;
}
body.sgallery-single-template .sgallery-related-video-card :where(figure,.post-thumbnail,.entry-thumbnail,.thumbnail){
  border-radius:10px!important;
  overflow:hidden!important;
  clip-path:none!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
}
body.sgallery-single-template .sgallery-related-video-card :where(figure,.post-thumbnail,.entry-thumbnail,.thumbnail) img{
  border-radius:0!important;
}


/* 7SGallery v2.8.4.1 — Hard fix for theme-derived pill radius on related videos */
body.sgallery-single-template .sgallery-related-videos .sgallery-related-video-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:clamp(16px,2vw,28px);
}
body.sgallery-single-template .sgallery-related-videos .sgallery-related-video-card,
body.sgallery-single-template .sgallery-related-videos .sgallery-related-video-card a{
  border-radius:0!important;
  overflow:visible!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}
body.sgallery-single-template .sgallery-related-videos .sgallery-related-video-card img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  object-fit:cover!important;
  border-radius:10px!important;
  overflow:hidden!important;
  clip-path:inset(0 round 10px)!important;
  mask:none!important;
  -webkit-mask:none!important;
}


/* 7SGallery v2.8.4.2 — Related Videos Wrapper Radius Fix */
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,2vw,28px);
  align-items:start;
}
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-card,
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-link{
  display:block!important;
  color:inherit!important;
  text-decoration:none!important;
  border-radius:0!important;
  overflow:visible!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-thumb{
  display:block!important;
  position:relative!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  border-radius:10px!important;
  clip-path:inset(0 round 10px)!important;
  mask:none!important;
  -webkit-mask:none!important;
  background:var(--sg-soft)!important;
  margin:0 0 8px!important;
}
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-thumb img,
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-card img,
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-link img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:0!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
  transform:none!important;
  margin:0!important;
}
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-placeholder{
  display:block!important;
  width:100%!important;
  height:100%!important;
  background:var(--sg-soft)!important;
}
@media (max-width:900px){
  .sgallery-single-page .sgallery-related-videos .sgallery-related-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  .sgallery-single-page .sgallery-related-videos .sgallery-related-video-grid{grid-template-columns:1fr;}
}


/* 7SGallery v2.9.0 Rebuild — LTS & UX Refresh */
.sgallery-page{
  --sg-radius:10px;
}
.sgallery-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 28px;
}
.sgallery-toolbar .sgallery-home-nav{
  margin:0;
}
.sgallery-toolbar-search{
  margin-inline-start:auto;
  min-width:min(320px, 100%);
}
.sgallery-toolbar-search input[type="search"]{
  width:100%;
  min-height:2.5rem;
  border:1px solid var(--sg-border);
  border-radius:var(--sg-input-radius,10px);
  background:transparent;
  color:inherit;
  font:inherit;
  padding:.45rem .85rem;
  box-shadow:none;
}
.sgallery-layout-switcher,
.sgallery-search-form .sgallery-search-form__field:not(.sgallery-search-form__field-search),
.sgallery-search-form .sgallery-search-form__actions,
.sgallery-result-count{
  display:none!important;
}
.sgallery-card,
.sgallery-album-card,
.sgallery-category-card{
  border-radius:10px!important;
  overflow:hidden!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}
.sgallery-card__media{
  border-radius:10px!important;
  overflow:hidden!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}
.sgallery-card__media img{
  border-radius:0!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}
.sgallery-card__views{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.58);
  color:#fff;
  font-size:12px;
  line-height:1;
  font-weight:600;
  letter-spacing:.01em;
  backdrop-filter:blur(6px);
}
.sgallery-card__views span[aria-hidden="true"]{
  font-size:9px;
  line-height:1;
}
@media (max-width:760px){
  .sgallery-toolbar{align-items:stretch;flex-direction:column;}
  .sgallery-toolbar-search{margin-inline-start:0;width:100%;}
}

/* Related video cards: keep rectangular media regardless of theme radius variables. */
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-thumb,
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-card img{
  border-radius:10px!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}

/* Admin rebuild */
.seven-sgallery-admin-wrap{
  width:calc(100% - 20px)!important;
  max-width:none!important;
  margin-right:20px!important;
}
.seven-sgallery-admin-wrap .sg-admin-hero--plain{
  align-items:flex-start;
}
.seven-sgallery-admin-wrap .sg-admin-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:#50575e;
  margin-top:8px;
}
.seven-sgallery-admin-wrap .sg-admin-meta--stacked{
  display:grid;
  gap:4px;
}
.seven-sgallery-admin-wrap .sg-admin-version{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  font-weight:600!important;
}
.sg-album-management-modern .sg-admin-hero,
.sg-album-management-modern .sg-admin-card{
  max-width:none;
}
.sg-album-management-card{
  overflow:auto;
}
.sg-album-management-table{
  border:0!important;
}
.sg-album-management-table thead th{
  font-weight:700;
  background:#f6f7f7;
}
.sg-album-management-table tbody tr:hover{
  background:#f8fafc;
}
.sg-admin-actions{
  margin-top:18px;
}



/* 7SGallery v2.9.1: Album Card Cleanup */
.sgallery-page .sgallery-album-card__description,
.sgallery-page .sgallery-album-card .sgallery-copy-link,
.sgallery-page .sgallery-album-card__copy,
.sgallery-page .sgallery-album-card .sgallery-share,
.sgallery-page .sgallery-album-card [data-sgallery-copy]{
  display:none!important;
}

/* 7SGallery v2.9.2: Album Grid Cleanup */
.sgallery-page .sgallery-album-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;
}
.sgallery-page.sgallery-cards-2 .sgallery-album-grid,
.sgallery-page.sgallery-cards-3 .sgallery-album-grid,
.sgallery-page.sgallery-cards-4 .sgallery-album-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.sgallery-page .sgallery-album-card{
  border-radius:0!important;
  overflow:hidden!important;
  background:transparent;
}
.sgallery-page .sgallery-album-card .sgallery-card__media{
  border-radius:0!important;
  overflow:hidden!important;
}
.sgallery-page .sgallery-album-card .sgallery-card__media img{
  border-radius:0!important;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.sgallery-page .sgallery-album-card .sgallery-card__body{
  padding:14px 18px 16px!important;
  min-height:0!important;
}
.sgallery-page .sgallery-album-card .sgallery-card__title{
  margin:0 0 10px!important;
}
.sgallery-page .sgallery-album-card__meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0!important;
}
.sgallery-page .sgallery-album-card__stats{
  margin:0!important;
  line-height:1.35!important;
}
.sgallery-page .sgallery-album-card .sgallery-card__views--inline{
  position:static!important;
  right:auto!important;
  bottom:auto!important;
  z-index:auto!important;
  min-height:auto!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  font-size:.92em!important;
  font-weight:500!important;
  letter-spacing:0!important;
  backdrop-filter:none!important;
  white-space:nowrap;
  opacity:.85;
}
.sgallery-page .sgallery-album-card .sgallery-card__views--inline span[aria-hidden="true"]{
  font-size:.85em!important;
  line-height:1!important;
}
.sgallery-page .sgallery-album-card__description,
.sgallery-page .sgallery-album-card .sgallery-copy-link,
.sgallery-page .sgallery-album-card__copy,
.sgallery-page .sgallery-album-card .sgallery-share,
.sgallery-page .sgallery-album-card [data-sgallery-copy]{
  display:none!important;
}
@media (max-width:900px){
  .sgallery-page .sgallery-album-grid,
  .sgallery-page.sgallery-cards-2 .sgallery-album-grid,
  .sgallery-page.sgallery-cards-3 .sgallery-album-grid,
  .sgallery-page.sgallery-cards-4 .sgallery-album-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:640px){
  .sgallery-page .sgallery-album-grid,
  .sgallery-page.sgallery-cards-2 .sgallery-album-grid,
  .sgallery-page.sgallery-cards-3 .sgallery-album-grid,
  .sgallery-page.sgallery-cards-4 .sgallery-album-grid{
    grid-template-columns:1fr!important;
  }
}

/* 7SGallery v2.9.3 — Video Player Layout Fix */
body.sgallery-single-template .sgallery-featured-media .sgallery-oembed,
body.sgallery-single-template .sgallery-featured-media .sgallery-video-provider{
  display:block!important;
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  border-radius:10px!important;
  background:#000!important;
  margin:0!important;
  padding:0!important;
}
body.sgallery-single-template .sgallery-featured-media .sgallery-oembed iframe,
body.sgallery-single-template .sgallery-featured-media .sgallery-video-provider iframe{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  border:0!important;
  border-radius:0!important;
  margin:0!important;
  padding:0!important;
}
body.sgallery-single-template .sgallery-featured-media .sgallery-video{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  max-height:none!important;
  object-fit:contain!important;
  background:#000!important;
  border-radius:10px!important;
}

/* 7SGallery v2.9.4 — View Count Style Unification */
.sgallery-page .sgallery-card .sgallery-card__media .sgallery-card__views{
  display:none!important;
}
.sgallery-page .sgallery-card .sgallery-card__body{
  position:relative!important;
}
.sgallery-page .sgallery-card .sgallery-card__views,
.sgallery-page .sgallery-card .sgallery-card__views--inline,
.sgallery-page .sgallery-album-card .sgallery-card__views,
.sgallery-page .sgallery-album-card .sgallery-card__views--inline,
.sgallery-page .sgallery-category-card .sgallery-card__views,
.sgallery-page .sgallery-category-card .sgallery-card__views--inline{
  position:static!important;
  right:auto!important;
  bottom:auto!important;
  z-index:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  min-height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  font-size:.92em!important;
  line-height:1!important;
  font-weight:600!important;
  letter-spacing:0!important;
  opacity:.92!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  white-space:nowrap!important;
}
.sgallery-page .sgallery-card .sgallery-card__body > .sgallery-card__views--inline{
  float:right!important;
  margin-top:-1.35em!important;
}
.sgallery-page .sgallery-album-card__meta-row .sgallery-card__views--inline{
  float:none!important;
  margin-top:0!important;
}
.sgallery-page .sgallery-card .sgallery-view-icon,
.sgallery-page .sgallery-album-card .sgallery-view-icon,
.sgallery-page .sgallery-category-card .sgallery-view-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:16px!important;
  height:16px!important;
  color:currentColor!important;
  opacity:1!important;
}
.sgallery-page .sgallery-card .sgallery-view-icon svg,
.sgallery-page .sgallery-album-card .sgallery-view-icon svg,
.sgallery-page .sgallery-category-card .sgallery-view-icon svg{
  display:block!important;
  width:16px!important;
  height:16px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.sgallery-page .sgallery-card .sgallery-view-number{
  display:inline-block!important;
  min-width:1ch!important;
}


/* 7SGallery v2.9.5 — UI Polish & Micro Interactions */
.sgallery-page{
  --sg-polish-ease:cubic-bezier(.22,.61,.36,1);
  --sg-polish-duration:180ms;
}
.sgallery-page :where(.sgallery-home-nav__item,.sgallery-filter,.sgallery-load-more,.sgallery-search-form__submit,.sgallery-search-form__reset,.sgallery-back,.sgallery-copy-link),
.sgallery-toolbar-search input[type="search"]{
  transition:background-color var(--sg-polish-duration) var(--sg-polish-ease),
             border-color var(--sg-polish-duration) var(--sg-polish-ease),
             color var(--sg-polish-duration) var(--sg-polish-ease),
             box-shadow var(--sg-polish-duration) var(--sg-polish-ease),
             transform var(--sg-polish-duration) var(--sg-polish-ease),
             opacity var(--sg-polish-duration) var(--sg-polish-ease);
}
.sgallery-page :where(.sgallery-card,.sgallery-album-card,.sgallery-category-card){
  transition:transform 220ms var(--sg-polish-ease),
             box-shadow 220ms var(--sg-polish-ease),
             border-color 220ms var(--sg-polish-ease),
             background-color 220ms var(--sg-polish-ease);
  will-change:transform;
}
.sgallery-page :where(.sgallery-card__media,.sgallery-album-item,.sgallery-related-video-thumb){
  position:relative;
  overflow:hidden;
}
.sgallery-page :where(.sgallery-card__media img,.sgallery-album-item img,.sgallery-related-video-card img){
  transition:transform 260ms var(--sg-polish-ease), filter 260ms var(--sg-polish-ease), opacity 180ms var(--sg-polish-ease);
  backface-visibility:hidden;
}
.sgallery-page :where(.sgallery-card__media)::after,
.sgallery-page .sgallery-album-item::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.14));
  opacity:0;
  transition:opacity 220ms var(--sg-polish-ease);
}
@media (hover:hover) and (pointer:fine){
  .sgallery-page :where(.sgallery-card,.sgallery-album-card,.sgallery-category-card):hover{
    transform:translateY(-2px);
    border-color:color-mix(in srgb,currentColor 24%,transparent);
    box-shadow:0 8px 24px rgba(0,0,0,.06);
  }
  .sgallery-page :where(.sgallery-card,.sgallery-album-card):hover :where(.sgallery-card__media img){
    transform:scale(1.018);
  }
  .sgallery-page :where(.sgallery-card,.sgallery-album-card):hover :where(.sgallery-card__media)::after,
  .sgallery-page .sgallery-album-item:hover::after{
    opacity:1;
  }
  .sgallery-page :where(.sgallery-home-nav__item,.sgallery-filter,.sgallery-load-more,.sgallery-search-form__submit,.sgallery-search-form__reset,.sgallery-back,.sgallery-copy-link):hover{
    transform:translateY(-1px);
  }
}
.sgallery-page :where(.sgallery-card,.sgallery-album-card,.sgallery-category-card):focus-within{
  outline:2px solid currentColor;
  outline-offset:3px;
}
.sgallery-toolbar-search input[type="search"]:focus,
.sgallery-search-form :where(input[type="search"],select):focus{
  outline:0;
  border-color:color-mix(in srgb,currentColor 44%,transparent);
  box-shadow:0 0 0 3px color-mix(in srgb,currentColor 10%,transparent);
}
.sgallery-play{
  transition:transform 220ms var(--sg-polish-ease), background-color 220ms var(--sg-polish-ease), opacity 220ms var(--sg-polish-ease);
}
@media (hover:hover) and (pointer:fine){
  .sgallery-card__media:hover .sgallery-play,
  .sgallery-card:focus-within .sgallery-play{
    transform:translate(-50%,-50%) scale(1.06);
    background:rgba(0,0,0,.72);
  }
}
.sgallery-page.is-loading{
  opacity:1!important;
  pointer-events:none;
}
.sgallery-page.is-loading .sgallery-grid,
.sgallery-page.is-loading .sgallery-album-grid,
.sgallery-page.is-loading .sgallery-category-grid{
  opacity:.74;
}
.sgallery-page.is-loading :where(.sgallery-card__media,.sgallery-album-card .sgallery-card__media)::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:4;
  background:linear-gradient(110deg, transparent 0%, color-mix(in srgb,currentColor 12%,transparent) 42%, transparent 72%);
  transform:translateX(-100%);
  animation:sgallerySkeletonSweep 1.15s ease-in-out infinite;
}
@keyframes sgallerySkeletonSweep{
  to{transform:translateX(100%);}
}
.sgallery-empty{
  display:grid;
  place-items:center;
  min-height:160px;
  padding:28px;
  border:1px dashed color-mix(in srgb,currentColor 24%,transparent)!important;
  border-radius:10px!important;
  background:color-mix(in srgb,currentColor 3%,transparent)!important;
  color:var(--sg-muted)!important;
  text-align:center;
}
.sgallery-load-end{
  margin-top:24px!important;
  padding:12px 16px;
  border:1px solid var(--sg-border);
  border-radius:10px;
  background:color-mix(in srgb,currentColor 3%,transparent);
}
.sgallery-page .sgallery-card__views,
.sgallery-page .sgallery-card__views--inline{
  transition:opacity 180ms var(--sg-polish-ease), transform 180ms var(--sg-polish-ease);
}
@media (max-width:640px){
  .sgallery-page{padding-bottom:28px;}
  .sgallery-toolbar{gap:12px;margin-bottom:20px;}
  .sgallery-home-nav{gap:8px;}
  .sgallery-page .sgallery-album-grid,
  .sgallery-page .sgallery-grid,
  .sgallery-page .sgallery-category-grid{gap:16px!important;}
  .sgallery-page .sgallery-album-card .sgallery-card__body,
  .sgallery-card__body{padding:13px 14px 15px!important;}
}
@media (prefers-reduced-motion: reduce){
  .sgallery-page :where(.sgallery-card,.sgallery-album-card,.sgallery-category-card,.sgallery-card__media img,.sgallery-album-item img,.sgallery-related-video-card img,.sgallery-play,.sgallery-home-nav__item,.sgallery-filter,.sgallery-load-more,.sgallery-search-form__submit,.sgallery-search-form__reset,.sgallery-back,.sgallery-copy-link){
    transition:none!important;
    transform:none!important;
  }
  .sgallery-page.is-loading :where(.sgallery-card__media,.sgallery-album-card .sgallery-card__media)::before{
    animation:none!important;
    display:none!important;
  }
}


/* 7SGallery v2.9.6 — Card Consistency & UI Refinement */
/* Video cards must never inherit pill/capsule radius from the active theme. */
.sgallery-page .sgallery-card.is-video,
.sgallery-page .sgallery-card.is-video .sgallery-card__media,
.sgallery-page .sgallery-card.is-video .sgallery-card__media img,
.sgallery-page .sgallery-card.is-video .sgallery-card__placeholder,
.sgallery-page .sgallery-card.is-video figure,
.sgallery-page .sgallery-card.is-video picture,
.sgallery-page .sgallery-card.is-video .post-thumbnail,
.sgallery-page .sgallery-card.is-video .entry-thumbnail,
.sgallery-page .sgallery-card.is-video .thumbnail{
  border-radius:0!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}
.sgallery-page .sgallery-card.is-video .sgallery-card__media{
  overflow:hidden!important;
  aspect-ratio:16/9!important;
}
.sgallery-page .sgallery-card.is-video .sgallery-card__media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
}
/* Related video cards use the same non-rounded video thumbnail rule. */
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-thumb,
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-card img,
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-link img,
body.sgallery-single-template .sgallery-related-videos .sgallery-related-video-card img,
body.sgallery-single-template .sgallery-related-videos .sgallery-related-video-card :where(figure,.post-thumbnail,.entry-thumbnail,.thumbnail){
  border-radius:0!important;
  clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-thumb{
  overflow:hidden!important;
  aspect-ratio:16/9!important;
}
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-thumb img,
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-card img,
.sgallery-single-page .sgallery-related-videos .sgallery-related-video-link img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
}
/* Keep hover polish consistent without changing the video card geometry. */
.sgallery-page .sgallery-card.is-video:hover,
.sgallery-page .sgallery-card.is-video:focus-within{
  border-radius:0!important;
}
