/* IASCOM Shell — σελίδες Βίντεο / Φωτογραφίες (v0.13.0) */

.imd { --imd-red: #d32f2f; --imd-ink: #333; --imd-muted: #6b6b6b; --imd-line: #ececec; --imd-bg: #f5f5f5; --imd-bar: #707070; --imd-radius: 8px;
	max-width: 1160px; margin: 0 auto; padding: 22px 10px 44px; color: var(--imd-ink); }
.imd h1.imd-title { font-weight: 300; font-size: 44px; line-height: 1.1; letter-spacing: -.5px; margin: 0; padding: 0; color: var(--imd-ink); }
.imd-rule { width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #e53935, #b71c1c); margin: 16px 0 14px; }
.imd-intro { font-size: 18px; font-weight: 300; color: var(--imd-muted); margin: 0 0 18px; }

/* μάρκες: γρήγορη μετάβαση */
.imd-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; position: sticky; top: 0; z-index: 5; background: #fff; padding: 10px 0; }
.admin-bar .imd-brands { top: 32px; }
.imd-brands a { display: inline-flex; align-items: center; gap: 6px; background: var(--imd-bg); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--imd-ink); }
.imd-brands a:hover { background: var(--imd-red); color: #fff; }
.imd-brands a span { font-weight: 400; opacity: .7; }

.imd-sec { padding-top: 26px; scroll-margin-top: 110px; }
.imd-sec h2 { font-weight: 300; font-size: 28px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--imd-line); }
.imd-sec h2 span { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; color: var(--imd-muted); margin-left: 8px; }

.imd-grid { display: grid; gap: 14px; }
.imd-grid-v { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.imd-grid-p { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.imd-card { background: #fff; border-radius: var(--imd-radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); overflow: hidden; text-decoration: none; color: var(--imd-ink); display: block; margin: 0; }
.imd-card a { text-decoration: none; color: inherit; display: block; }
.imd-thumb { display: block; position: relative; background: var(--imd-bg); }
.imd-thumb img { display: block; width: 100%; height: auto; }
.imd-grid-v .imd-thumb { aspect-ratio: 16 / 9; background: #111; }
.imd-grid-v .imd-thumb img { height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s ease, transform .25s ease; }
.imd-grid-p .imd-thumb { aspect-ratio: 1; }
.imd-grid-p .imd-thumb img { height: 100%; object-fit: contain; transition: transform .25s ease; }
.imd-card:hover .imd-thumb img { transform: scale(1.04); opacity: 1; }
.imd-tri { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(211, 47, 47, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.imd-tri::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.imd-n { position: absolute; right: 6px; top: 6px; background: var(--imd-bar); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px; }
.imd-card b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; padding: 9px 10px 4px; }
.imd-photo b { font-weight: 400; text-align: center; padding-bottom: 10px; }
.imd-card:hover b { color: var(--imd-red); }
.imd-sub { font-size: 12px; color: var(--imd-muted) !important; padding: 0 10px 10px; }
.imd-sub:hover { color: var(--imd-red) !important; }

/* παράθυρο προβολής */
.imd-box { position: fixed; inset: 0; z-index: 100000; background: rgba(20, 20, 20, .88); display: flex; align-items: center; justify-content: center; padding: 18px; }
.imd-box[hidden] { display: none; }
.imd-box-in { position: relative; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; }
.imd-stage { background: #111; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.imd-stage iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.imd-stage img { max-width: 100%; max-height: calc(100vh - 150px); display: block; background: #fff; }
.imd-box.is-photo .imd-stage { background: var(--imd-bg); }
.imd-x { position: absolute; right: 8px; top: 8px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.imd-x:hover { background: var(--imd-red); }
.imd-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
.imd-cap { font-weight: 600; font-size: 15px; }
.imd-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.imd-tools button, .imd-tools a { border: 0; border-radius: 6px; background: var(--imd-bar); color: #fff !important; font-weight: 600; font-size: 13px; line-height: 1; padding: 10px 14px; cursor: pointer; text-decoration: none !important; }
.imd-tools button:hover, .imd-tools a:hover { background: var(--imd-red); }
.imd-tools .imd-copy { background: var(--imd-red); }
.imd-tools .imd-copy.ok { background: #1b7f3b; }
.imd-tools .imd-copy.fail { background: #b32d2e; }
.imd-tools .imd-prev, .imd-tools .imd-next { width: 36px; padding: 8px 0; font-size: 18px; }
.imd-count { font-size: 13px; color: var(--imd-muted); min-width: 34px; text-align: center; }
.imd-box.is-video .imd-prev, .imd-box.is-video .imd-next, .imd-box.is-video .imd-count, .imd-box.is-video .imd-copy, .imd-box.is-video .imd-dl { display: none; }
.imd-box.is-single .imd-prev, .imd-box.is-single .imd-next, .imd-box.is-single .imd-count { display: none; }
body.imd-open { overflow: hidden; }

@media (max-width: 1024px) {
	.imd h1.imd-title { font-size: 36px; }
	.imd-grid-v { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.imd-grid-p { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.admin-bar .imd-brands { top: 46px; }
}
@media (max-width: 767px) {
	.imd { padding: 14px 12px 32px; }
	.imd h1.imd-title { font-size: 30px; }
	.imd-intro { font-size: 16px; }
	.imd-brands { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 4px; padding: 8px 12px; scrollbar-width: none; }
	.imd-brands::-webkit-scrollbar { display: none; }
	.imd-brands a { flex: 0 0 auto; }
	.imd-grid-v { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.imd-grid-p { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.imd-photo b { font-size: 12px; padding: 6px 4px 8px; }
	.imd-box { padding: 0; align-items: flex-end; }
	.imd-box-in { border-radius: 10px 10px 0 0; }
	.imd-bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
	.imd-tools { width: 100%; }
	.imd-tools .imd-copy { flex: 1; }
}

/* ------------------------------------------------------------------ «Τα νέα μας»: εκθέσεις σε κάρτες (v0.14.0) */
.inw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.inw-card { background: #fff; border-radius: var(--imd-radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.inw-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .14); transform: translateY(-2px); }

/* εξώφυλλο: φαίνεται ολόκληρο, δεν κόβεται ποτέ */
.inw-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--imd-bg) center / cover no-repeat; }
.inw-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-backdrop-filter: blur(22px) brightness(.9); backdrop-filter: blur(22px) brightness(.9); transition: transform .35s ease; }
.inw-card:hover .inw-cover img { transform: scale(1.03); }
.inw-yr { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--imd-red); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .5px; line-height: 1; padding: 7px 12px; border-radius: 999px; }
.inw-cnt { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 7px 11px; border-radius: 999px; }

.inw-body { padding: 14px 16px 16px; }
.inw .inw-body h2 { font-weight: 400; font-size: 20px; line-height: 1.25; margin: 0 0 10px; padding: 0; border: 0; color: var(--imd-ink); transition: color .2s ease; }
.inw-card:hover .inw-body h2 { color: var(--imd-red); }
.inw-where { margin: -4px 0 10px; font-size: 13px; color: var(--imd-muted); }
.inw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.inw-tags span { background: var(--imd-bg); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--imd-bar); }
.inw-desc { font-size: 14px; line-height: 1.55; color: var(--imd-muted); margin: 10px 0 0; }
.inw-desc p { margin: 0 0 .6em; }
.inw-desc p:last-child { margin-bottom: 0; }

.inw-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.inw-cell { position: relative; display: block; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--imd-bg); }
.inw-cell img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.inw-cell:hover img { transform: scale(1.08); }
.inw-video::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); z-index: 1; }
.inw-video .imd-tri { z-index: 2; }
.inw-cell .imd-tri { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.inw-cell .imd-tri::after { left: 12px; top: 9px; border-width: 6px 0 6px 10px; }
.inw-more { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; font-size: 16px; }

.inw .inw-body h2 a { color: inherit; text-decoration: none; }
.inw-read { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--imd-red); text-decoration: none; }
.inw-read:hover { text-decoration: underline; }

/* σελίδα-άρθρο μιας έκθεσης (v0.15.0) */
.inw-crumb { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--imd-muted); margin: 0 0 14px; }
.inw-crumb a { color: var(--imd-muted); text-decoration: none; }
.inw-crumb a:hover { color: var(--imd-red); }
.inw-crumb span { margin: 0 4px; }
.inw-yr-flat { position: static; display: inline-block; margin: 0 0 10px; }
.inw-one-head .imd-intro { margin-bottom: 10px; }
.inw-one-head .inw-tags { margin-bottom: 4px; }
.inw-all { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.inw-all .inw-cell { aspect-ratio: 4 / 3; border-radius: var(--imd-radius); }
.inw-all .inw-first { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; background-size: cover; background-position: center; }
.inw-all .inw-first img { position: absolute; inset: 0; object-fit: contain; -webkit-backdrop-filter: blur(22px) brightness(.9); backdrop-filter: blur(22px) brightness(.9); }
.inw-all .inw-cell .imd-tri { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.inw-all .inw-cell .imd-tri::after { left: 21px; top: 16px; border-width: 11px 0 11px 18px; }
.inw-article { max-width: 820px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--imd-line); font-size: 16px; line-height: 1.7; color: var(--imd-ink); }
.inw-article > :first-child { margin-top: 0; }
.inw-article p { margin: 0 0 1em; }
.inw-article h2, .inw-article h3 { font-weight: 300; line-height: 1.2; margin: 1.3em 0 .5em; border: 0; padding: 0; }
.inw-article h2 { font-size: 26px; }
.inw-article h3 { font-size: 21px; }
.inw-article a { color: var(--imd-red); word-break: break-word; }
.inw-article ul, .inw-article ol { margin: 0 0 1em 1.3em; padding: 0; }
.inw-article img { max-width: 100%; height: auto; border-radius: 6px; }
.inw-back { margin: 28px 0 0; }
.inw-back a { font-size: 14px; font-weight: 600; color: var(--imd-bar); text-decoration: none; }
.inw-back a:hover { color: var(--imd-red); }
@media (max-width: 767px) {
	.inw-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.inw-all .inw-first { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
	.inw-article { font-size: 15px; margin-top: 22px; padding-top: 18px; }
}

/* μικρογραφίες μέσα στο παράθυρο προβολής (όταν η έκθεση έχει πολλές φωτογραφίες) */
.imd-ths { display: flex; gap: 6px; padding: 0 14px 12px; overflow-x: auto; }
.imd-ths:empty, .imd-box.is-video .imd-ths, .imd-box.is-single .imd-ths { display: none; }
.imd-ths button { flex: 0 0 72px; height: 54px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .55; background: var(--imd-bg); }
.imd-ths button.on { opacity: 1; outline: 2px solid var(--imd-red); outline-offset: -2px; }
.imd-ths img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inw .imd-stage img { max-height: calc(100vh - 220px); }
.imd-go[hidden] { display: none; }

@media (max-width: 1024px) {
	.inw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
	.inw-grid { grid-template-columns: 1fr; }
	.imd-ths { padding: 0 12px 10px; }
	.imd-ths button { flex-basis: 58px; height: 44px; }
}
