/* seastar.photos — static-site additions on top of the portfolio-gallery theme CSS.
   Replaces the Photo Gallery plugin's slideshow / mosaic / album / lightbox styling. */

@media screen and (max-width: 1024px) {
  .phone-menu-block.open { display: block; }
}
.responsive_menu .active_menu_responsive p { text-align: center; }

/* ---------------- slideshow (was bwg slideshow: 800x500 stage, 180x90 filmstrip) ---------------- */
.ss-gallery { max-width: 800px; margin: 0 auto 20px; user-select: none; -webkit-user-select: none; }
.ss-strip { display: flex; height: 90px; background: #000; }
.ss-strip-left, .ss-strip-right {
  flex: 0 0 20px; border: 0; padding: 0; cursor: pointer;
  background: #3b3b3b; color: #fff; font-size: 30px; line-height: 90px;
}
.ss-strip-left:hover, .ss-strip-right:hover { background: #555; }
.ss-strip-view { flex: 1 1 auto; overflow: hidden; position: relative; }
.ss-strip-track { display: flex; gap: 2px; height: 90px; }
.ss-thumb {
  flex: 0 0 180px; height: 90px; padding: 0; margin: 0; border: 1px solid #000; background: #000; cursor: pointer;
  opacity: .8; transition: opacity .3s;
}
.ss-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-thumb.active, .ss-thumb:hover { opacity: 1; border-color: #000; }
.ss-stage { position: relative; width: 100%; aspect-ratio: 8 / 5; background: #000; overflow: hidden; }
.ss-main { display: block; position: absolute; inset: 0; cursor: pointer; }
.ss-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity 1s ease; opacity: 1;
}
.ss-img.ss-next-img { opacity: 0; }
.ss-img.ss-next-img.ss-in { opacity: 1; }
.ss-img.ss-out { opacity: 0; }
.ss-prev, .ss-next, .ss-play {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  border: 0; background: transparent; color: #fff; cursor: pointer; padding: 10px;
  font-size: 40px; text-shadow: 0 0 6px #000; opacity: 0; transition: opacity .3s;
}
.ss-prev { left: 5px; }
.ss-next { right: 5px; }
.ss-play { left: 50%; transform: translate(-50%, -50%); font-size: 60px; }
.ss-stage:hover .ss-prev, .ss-stage:hover .ss-next, .ss-stage:hover .ss-play,
.ss-prev:focus-visible, .ss-next:focus-visible, .ss-play:focus-visible { opacity: .8; }
@media (hover: none) { .ss-prev, .ss-next { opacity: .7; } }
@media (max-width: 600px) {
  .ss-strip, .ss-strip-track { height: 60px; }
  .ss-thumb { flex-basis: 120px; height: 60px; }
  .ss-strip-left, .ss-strip-right { line-height: 60px; font-size: 24px; }
  .ss-prev, .ss-next { font-size: 28px; }
  .ss-play { font-size: 40px; }
}

/* ---------------- justified mosaic (was bwg thumbnails_mosaic) ---------------- */
.mo-gallery { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 20px; }
.mo-item { display: block; flex: 0 0 auto; width: 200px; height: 150px; overflow: hidden; background: #111; }
.mo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, opacity .4s; }
.mo-item:hover img { transform: scale(1.04); opacity: .9; }

/* ---------------- travel albums (was bwg album_compact_preview) ---------------- */
.al-albums { text-align: center; }
.al-albums [hidden] { display: none !important; }
.al-album { margin: 0 0 40px; }
.al-cover { display: inline-block; width: 200px; color: #fff; text-decoration: none; }
.al-cover img { display: block; width: 200px; height: 180px; object-fit: cover; transition: opacity .3s; }
.al-cover:hover img { opacity: .85; }
.al-title { display: block; padding: 8px 0 0; font-size: 14px; font-weight: bold; color: #fff; }
.al-cover:hover .al-title { color: #efb30e; }
.al-body { text-align: left; }
.al-heading { text-align: center; margin: 0 0 10px; }
.al-back {
  border: 0; background: none; color: #efb30e; cursor: pointer; font: inherit; font-size: 14px; padding: 0 0 10px;
}
.al-back:hover { color: #fff; }

/* ---------------- lightbox (was the plugin's AJAX GalleryBox) ---------------- */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .92); }
.lb[hidden] { display: none; }
.lb-stage { position: absolute; inset: 40px 60px; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 0 20px #000; }
.lb-prev, .lb-next, .lb-close {
  position: absolute; border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .75; padding: 12px;
}
.lb-prev:hover, .lb-next:hover, .lb-close:hover { opacity: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 36px; }
.lb-prev { left: 5px; }
.lb-next { right: 5px; }
.lb-close { top: 5px; right: 10px; font-size: 26px; }
.lb-count { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #aaa; font-size: 13px; }
@media (max-width: 600px) {
  .lb-stage { inset: 50px 8px; }
  .lb-prev, .lb-next { font-size: 26px; top: auto; bottom: 0; transform: none; }
}

/* ---------------- contact phone + copyright (replace the Facebook link) ---------------- */
.contact-phone { margin: 8px 0 0; font-size: 15px; }
.contact-phone a { color: #fff; text-decoration: none; }
.contact-phone a:hover { color: #efb30e; }
.contact-phone .fa { color: #efb30e; margin-right: 4px; }
.site-copyright { margin: 20px 10px; font-size: 11px; line-height: 1.6; color: #999; text-align: center; }
.entry a[href^="tel:"], .entry a[href^="mailto:"] { color: inherit; text-decoration: none; }

/* copy protection: photos can't be dragged, long-press saved (iOS/Android) or right-clicked directly */
.ss-gallery img, .mo-gallery img, .al-albums img, .lb img {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  pointer-events: none;
}
