/* Orion Gallery */
.orion-gallery { width:100%; padding:60px 0; background:#fff; }
.orion-gallery__container { max-width:1200px; margin:0 auto; padding:0 20px; }
.orion-gallery__header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.orion-gallery__title { font-size:32px; font-weight:700; color:#1a2a1d; margin:0; }
.orion-gallery__btn { padding:10px 14px; border:1px solid #1a2a1d; border-radius:6px; text-decoration:none; color:#1a2a1d; font-weight:600; font-size:14px; }

/* Grid */
.orion-gallery__grid { display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:220px; gap:20px; }
.orion-gallery--layout_1 .orion-gallery__item:nth-child(1) { grid-column: span 1; grid-row: span 2; }
.orion-gallery--layout_1 .orion-gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.orion-gallery--layout_1 .orion-gallery__item:nth-child(3) { grid-column: span 1; grid-row: span 2; }
.orion-gallery--layout_2 .orion-gallery__grid { grid-auto-rows:200px; }

.orion-gallery__item { position:relative; overflow:hidden; border-radius:8px; }
.orion-gallery__img { position:absolute; inset:0; background-size:cover; background-position:center; transition: transform .4s ease; }
.orion-gallery__item:hover .orion-gallery__img { transform:scale(1.06); }
.orion-gallery__open { position:absolute; right:12px; top:12px; width:42px; height:42px; border-radius:999px; background:#fff; color:#1a2a1d; border:none; display:flex; align-items:center; justify-content:center; font-size:18px; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.15); opacity:.95; }
.orion-gallery__caption { position:absolute; left:10px; bottom:10px; color:#fff; background:rgba(0,0,0,.45); padding:6px 10px; border-radius:4px; font-size:13px; }

/* Lightbox */
.orion-gallery__lightbox[hidden] { display:none; }
.orion-gallery__lightbox { position:fixed; inset:0; z-index:9999; }
.orion-gallery__lightbox-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.6); }
.orion-gallery__lightbox-dialog { position:absolute; inset:40px; background:#111; border-radius:8px; overflow:hidden; display:flex; flex-direction:column; }
.orion-gallery__close { position:absolute; right:12px; top:8px; background:none; border:none; color:#fff; font-size:28px; cursor:pointer; }
.orion-gallery__nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.15); border:none; color:#fff; width:42px; height:64px; cursor:pointer; font-size:32px; }
.orion-gallery__prev { left:8px; }
.orion-gallery__next { right:8px; }
.orion-gallery__slides { flex:1; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.orion-gallery__slide { min-width:100%; display:flex; align-items:center; justify-content:center; }
.orion-gallery__slide img { max-width:92%; max-height:70vh; object-fit:contain; border-radius:6px; }
.orion-gallery__slide-cap { color:#e5e7eb; margin-top:8px; text-align:center; }
.orion-gallery__thumbs { display:flex; gap:8px; padding:10px; background:#0f0f0f; overflow:auto; }
.orion-gallery__thumb { border:none; background:#222; padding:2px; border-radius:4px; cursor:pointer; }
.orion-gallery__thumb img { width:70px; height:50px; object-fit:cover; border-radius:3px; }

/* Responsive */
@media (max-width:1024px){ .orion-gallery__grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:768px){ .orion-gallery__grid { grid-template-columns:repeat(2,1fr); grid-auto-rows:180px; } .orion-gallery__title{font-size:26px;} }
@media (max-width:520px){ .orion-gallery__grid { grid-template-columns:1fr; grid-auto-rows:200px; } }
