/* Fergus Noone site: shared base for both looks. Skin files set the variables and layout. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg, #fff); color: var(--ink, #111); font-family: var(--font-body, system-ui, sans-serif); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
main { display: block; outline: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fns-skip { position: absolute; left: 12px; top: -100px; z-index: 1000; padding: 12px 18px; background: #111; color: #fff; text-decoration: none; }
.fns-skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--focus, #111); outline-offset: 3px; }

.fns-icon { flex: none; }

/* Panels (menus) */
[data-fns-panel][hidden] { display: none !important; }
body.fns-locked { overflow: hidden; }

/* Social */
.fns-social { display: flex; gap: 8px; flex-wrap: wrap; }
.fns-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; text-decoration: none; }

/* Forms */
.fns-form { display: flex; flex-direction: column; gap: 22px; }
.fns-field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fns-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.fns-field input, .fns-field select, .fns-field textarea { width: 100%; font: inherit; font-size: 16px; color: inherit; background: transparent; border-radius: 0; }
.fns-field textarea { resize: vertical; min-height: 120px; }
.fns-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fns-actions { margin: 0; }
.fns-form-alt { margin: 0; font-size: 14px; }
.fns-form-notice { padding: 16px 20px; margin: 0 0 24px; border-left: 3px solid currentColor; outline: none; }
.fns-form-notice p { margin: 0; }
.fns-form-notice--ok { background: #eef6ef; color: #1d4d2b; }
.fns-form-notice--error { background: #fbeeee; color: #8a1f1f; }
@media (max-width: 600px) { .fns-field-row { grid-template-columns: 1fr; } }

/* Prices table */
.fns-prices { width: 100%; border-collapse: collapse; }
.fns-prices caption { text-align: left; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted, #5f5f5f); padding-bottom: 12px; }
.fns-prices td { padding: 12px 0; border-bottom: 1px solid var(--rule, #e6e6e6); }
.fns-prices tr:last-child td { border-bottom: 0; }
.fns-prices__cm { color: var(--muted, #5f5f5f); }
.fns-prices__price { text-align: right; }

/* Collection cards */
.fns-card a { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.fns-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--rule, #eee); }
.fns-card__img { width: 100%; height: 100%; object-fit: cover; }
.fns-card__text { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fns-card__count { font-size: 14px; color: var(--muted, #5f5f5f); white-space: nowrap; }

/* Page content (About, privacy) */
.fns-content > * + * { margin-top: 1.2em; }
.fns-content p { margin: 0; }
.fns-content .wp-block-columns { display: flex; gap: 48px; align-items: flex-start; }
.fns-content .wp-block-column { min-width: 0; flex: 1 1 0; }
.fns-content .wp-block-column > * + * { margin-top: 1.2em; }
.fns-content .wp-block-image img { width: 100%; height: auto; }
.fns-content .wp-element-caption, .fns-content figcaption { margin-top: 10px; font-size: 14px; color: var(--muted, #5f5f5f); }
.fns-content a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 781px) {
	.fns-content .wp-block-columns { flex-direction: column; align-items: stretch !important; gap: 24px !important; }
	.fns-content .wp-block-column { flex: none; flex-basis: auto !important; width: 100%; }
}


/* Viewer */
.fns-viewer { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: #0d0d0d; color: #fff; font-family: var(--font-body, system-ui, sans-serif); }
.fns-viewer[hidden] { display: none; }
.fns-viewer__bar { flex: none; height: 64px; padding: 0 12px 0 24px; display: flex; align-items: center; justify-content: space-between; }
.fns-viewer__count { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #b5b5b5; }
.fns-viewer__close, .fns-viewer__nav { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fns-viewer__close { background: transparent; }
.fns-viewer__close:hover, .fns-viewer__nav:hover { background: rgba(255,255,255,.18); }
.fns-viewer :focus-visible { outline-color: #fff; }
.fns-viewer__stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.fns-viewer__figure { flex: 1; height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.fns-viewer__figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes fns-fade { from { opacity: 0; } to { opacity: 1; } }
.fns-viewer__info { flex: none; padding: 18px 24px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; border-top: 1px solid #222; }
.fns-viewer__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fns-viewer__ref { font-size: 13px; color: #9a9a9a; min-height: 1em; }
.fns-viewer__title { font-family: var(--font-display, inherit); font-weight: 300; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; }
.fns-viewer__paper { font-size: 14px; color: #b5b5b5; }
.fns-viewer__order { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fns-viewer__sizes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fns-viewer__sizes button { min-height: 44px; padding: 0 12px; font-size: 14px; cursor: pointer; border: 1px solid #3a3a3a; background: transparent; color: #fff; }
.fns-viewer__sizes button:hover { border-color: #fff; }
.fns-viewer__sizes button[aria-checked="true"] { background: #fff; color: #111; border-color: #fff; }
.fns-viewer__buy { display: flex; align-items: center; gap: 20px; }
.fns-viewer__price { font-family: var(--font-display, inherit); font-size: 26px; font-weight: 300; }
.fns-viewer .fns-viewer__cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; background: #fff; color: #111; border: 1px solid #fff; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .04em; transition: background-color .2s ease, color .2s ease; }
.fns-viewer .fns-viewer__cta:hover, .fns-viewer .fns-viewer__cta:focus-visible { background: transparent; color: #fff; }
@media (max-width: 767px) {
	.fns-viewer__stage { padding: 0; position: relative; }
	.fns-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.45); }
	.fns-viewer__nav--prev { left: 8px; } .fns-viewer__nav--next { right: 8px; }
	.fns-viewer__info { padding: 14px 16px 18px; }
	.fns-viewer__order { align-items: stretch; width: 100%; }
	.fns-viewer__sizes { justify-content: flex-start; }
	.fns-viewer__buy { justify-content: space-between; }
}
/* Classic viewer: photograph, title and an enquiry link only. */
.fns-skin-classic .fns-viewer__sizes, .fns-skin-classic .fns-viewer__price { display: none; }

/* Admin-only look switcher */
.fns-skin-pill { position: fixed; left: 16px; bottom: 16px; z-index: 9998; display: flex; padding: 4px; gap: 2px; background: rgba(17,17,17,.92); border-radius: 999px; font: 500 13px/1 system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.fns-skin-pill a { color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 999px; }
.fns-skin-pill a[aria-current="true"] { background: #fff; color: #111; }

/* "On Instagram" strip: small, one row */
.fns-ig { max-width: 1360px; margin: 0 auto; padding: 0 40px 72px; }
.fns-ig__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--rule, #e6e6e6); padding-top: 18px; margin-bottom: 18px; }
.fns-ig__title { font-family: var(--font-display, inherit); font-size: 14px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.fns-ig__follow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted, #5f5f5f); text-decoration: none; }
.fns-ig__follow:hover { color: var(--ink, #111); }
.fns-ig__grid { display: grid; grid-template-columns: repeat(var(--ig-count, 6), minmax(0, 1fr)); gap: 8px; }
.fns-ig__grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--rule, #eee); }
.fns-ig__grid img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); } /* hides pale print borders in some photos */
@media (max-width: 767px) {
	.fns-ig { padding: 0 0 48px; }
	.fns-ig__head { margin: 0 20px 14px; }
	.fns-ig__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px; gap: 6px; scrollbar-width: none; }
	.fns-ig__grid::-webkit-scrollbar { display: none; }
	.fns-ig__grid li { flex: 0 0 38%; scroll-snap-align: start; }
}
.fns-skin-classic .fns-ig { padding-top: 24px; }
