body.mtravel-theme .mt-home-gallery{background:#f7f5ef}
body.mtravel-theme .mt-home-gallery .mtravel-section-head{align-items:center;gap:28px}
body.mtravel-theme .mt-home-gallery .mtravel-section-head h2{max-width:680px}
body.mtravel-theme .mt-home-gallery .mtravel-section-head>.mtravel-button{flex-shrink:0;white-space:nowrap}
body.mtravel-theme .mt-gallery-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.mtravel-theme .mt-gallery-card{margin:0;min-width:0;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 3px 18px #123c3021}
body.mtravel-theme .mt-gallery-card a{display:block;overflow:hidden}
body.mtravel-theme .mt-gallery-card img{display:block;width:100%;height:330px;object-fit:cover;object-position:center 60%;transition:transform .3s ease}
body.mtravel-theme .mt-gallery-card a:hover img{transform:scale(1.025)}
body.mtravel-theme .mt-gallery-card figcaption{font-size:16px!important;line-height:1.5;color:#173e32!important;font-weight:600;padding:16px 18px;margin:0}
body.mtravel-theme .mt-gallery-grid>p{max-width:830px;font-size:18px;line-height:1.85;margin:0 0 36px}
body.mtravel-theme .mt-gallery-grid>.wp-block-gallery{display:block!important;columns:3;column-gap:24px;margin:0}
body.mtravel-theme .mt-gallery-grid .wp-block-gallery figure.wp-block-image{display:inline-block!important;break-inside:avoid;width:100%!important;margin:0 0 24px!important;border-radius:12px;overflow:hidden;background:#f6f5ef;vertical-align:top}
body.mtravel-theme .mt-gallery-grid .wp-block-gallery figure.wp-block-image a{display:block;width:100%}
body.mtravel-theme .mt-gallery-grid .wp-block-gallery figure.wp-block-image img{width:100%!important;height:auto!important;max-height:none!important;display:block;aspect-ratio:auto;object-fit:contain}
body.mtravel-theme .mt-gallery-grid .wp-block-gallery figure.wp-block-image figcaption{position:static!important;inset:auto!important;background:none!important;color:#173e32!important;font-size:16px!important;line-height:1.5!important;font-weight:600;padding:16px 18px!important;margin:0!important;max-height:none!important;text-align:left!important}
body.mtravel-theme .mt-gallery-next{margin-top:50px;padding:36px;background:#f2f5ee;border-radius:16px;text-align:center}
body.mtravel-theme .mt-gallery-next p{max-width:740px;margin:16px auto 24px}
body.mtravel-theme .mt-travel-gallery a:focus-visible{outline:3px solid #cc9a30;outline-offset:4px}
html.mt-photo-viewer-open{overflow:hidden}
body.mtravel-theme dialog.mt-photo-viewer{position:fixed;inset:0;width:min(1120px,96vw);max-width:96vw;height:min(930px,94dvh);max-height:94dvh;margin:auto;padding:18px 24px;border:0;border-radius:14px;background:#11241e;color:#fff;overflow:auto;box-sizing:border-box;z-index:999999}
body.mtravel-theme dialog.mt-photo-viewer::backdrop{background:rgba(5,15,11,.87)}
body.mtravel-theme .mt-photo-viewer-top,body.mtravel-theme .mt-photo-viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px}
body.mtravel-theme .mt-photo-viewer figure{margin:12px 0;display:flex;flex-direction:column;align-items:center;gap:12px}
body.mtravel-theme .mt-photo-viewer figure img{display:block;width:auto;max-width:100%;height:calc(94dvh - 200px);max-height:710px;object-fit:contain;border-radius:3px}
body.mtravel-theme .mt-photo-viewer figure figcaption{color:#fff!important;font-size:17px!important;text-align:center;margin:0;background:none!important;line-height:1.5}
body.mtravel-theme .mt-photo-viewer button,body.mtravel-theme .mt-photo-viewer a{font-family:inherit!important;font-size:15px!important;line-height:1.4!important;font-weight:600;color:#fff!important;border:1px solid #ffffff60!important;border-radius:7px;background:#ffffff12!important;min-height:44px;padding:10px 15px!important;text-decoration:none!important;cursor:pointer}
body.mtravel-theme .mt-photo-viewer button:hover,body.mtravel-theme .mt-photo-viewer a:hover{background:#ffffff28!important}
body.mtravel-theme .mt-photo-viewer :focus-visible{outline:3px solid #e6b954;outline-offset:3px}
body.mtravel-theme .mt-photo-viewer button:disabled{opacity:.4;cursor:default}
@media(max-width:900px){body.mtravel-theme .mt-home-gallery .mtravel-section-head{flex-wrap:wrap}body.mtravel-theme .mt-gallery-preview{grid-template-columns:repeat(2,minmax(0,1fr))}body.mtravel-theme .mt-gallery-grid>.wp-block-gallery{columns:2}}
@media(max-width:600px){body.mtravel-theme .mt-gallery-preview{grid-template-columns:1fr;gap:20px}body.mtravel-theme .mt-gallery-card img{height:auto;max-height:480px;object-fit:cover}body.mtravel-theme .mt-gallery-grid>.wp-block-gallery{columns:1}body.mtravel-theme .mt-gallery-next{padding:25px 18px}body.mtravel-theme dialog.mt-photo-viewer{padding:14px 12px;width:96vw}body.mtravel-theme .mt-photo-viewer-bottom{flex-wrap:wrap;gap:8px}body.mtravel-theme .mt-photo-viewer-bottom a{order:3;width:100%;text-align:center}body.mtravel-theme .mt-photo-viewer figure img{height:calc(94dvh - 250px)}body.mtravel-theme .mt-photo-viewer button{padding:10px!important;font-size:14px!important}}
@media(prefers-reduced-motion:reduce){body.mtravel-theme .mt-gallery-card img{transition:none}body.mtravel-theme .mt-gallery-card a:hover img{transform:none}}
