.attica-panels-program,
.attica-panel-card-widget-wrap,
.attica-elementor-grid {
  --attica-green: #9bc532;
  --attica-deep: #274f59;
  --attica-line: #d7dedb;
  width: 100%;
  font-family: inherit;
}

.attica-panels-program {
  margin: 0 auto;
}

.attica-panels-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  margin: 0 0 30px;
  border: 1px solid var(--attica-line);
  background: var(--attica-line);
}

.attica-panels-tab {
  appearance: none;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: var(--attica-deep);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .18s ease, background .18s ease;
}

.attica-panels-tab:hover,
.attica-panels-tab:focus-visible {
  filter: brightness(1.12);
  outline: 2px solid var(--attica-green);
  outline-offset: -2px;
}

.attica-panels-tab.is-active {
  background: var(--attica-green);
  color: #15343b;
}

.attica-panels-day[hidden] {
  display: none !important;
}

/* Η ημερομηνία δεν εμφανίζεται ως τίτλος πάνω από τις κάρτες. */
.attica-panels-date-title {
  display: none !important;
}

.attica-panels-list,
.attica-elementor-grid {
  --attica-row-gap: var(--attica-gap, 10px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--attica-row-gap);
  align-items: flex-start;
}

.attica-auto-grid {
  --attica-row-columns: var(--attica-auto-columns, 1);
}

.attica-elementor-grid:not(.attica-auto-grid) {
  --attica-row-columns: var(--attica-elementor-columns, var(--attica-manual-columns, 5));
}

/* Equal card widths; every incomplete row stays centered, including 4 + 3. */
.attica-panels-list > .attica-panel-card,
.attica-elementor-grid > .attica-panel-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - (var(--attica-row-columns, 1) - 1) * var(--attica-row-gap)) / var(--attica-row-columns, 1));
  max-width: 100%;
}

.attica-panel-card-widget-wrap {
  display: flex;
  width: 100%;
}

.attica-panel-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--attica-line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(19, 47, 52, .08);
}

.attica-panel-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* Αυτόματη προσαρμογή μεγέθους χωρίς παραμόρφωση. */
.attica-auto-grid .attica-panel-card {
  height: auto;
  min-width: 0;
}

.attica-panel-stage {
  padding: 8px 12px;
  background: var(--attica-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.attica-panels-empty {
  padding: 18px;
  border: 1px dashed var(--attica-line);
  background: #f8faf9;
  color: #53615e;
  text-align: center;
}

@media (max-width: 1024px) {
  .attica-auto-grid {
    --attica-row-columns: var(--attica-auto-columns-tablet, 3);
  }

  .attica-elementor-grid:not(.attica-auto-grid) {
    --attica-row-columns: var(--attica-elementor-columns, var(--attica-manual-columns-tablet, 3));
  }
}

@media (max-width: 767px) {
  .attica-panels-tabs {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
  }

  .attica-panels-tab {
    min-height: 40px;
    padding: 8px;
    font-size: 11px;
  }

  .attica-auto-grid {
    --attica-row-columns: var(--attica-auto-columns-mobile, 1);
  }

  .attica-elementor-grid:not(.attica-auto-grid) {
    --attica-row-columns: var(--attica-elementor-columns, var(--attica-manual-columns-mobile, 1));
  }

  .attica-panels-list,
  .attica-elementor-grid {
    --attica-row-gap: min(var(--attica-gap, 10px), 16px);
  }
}

/* V1.1.3 — Μεγάλη προβολή χωρίς εσωτερική μπάρα κύλισης */
.attica-panel-image-link {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.attica-panel-image-link:focus-visible {
  outline: 3px solid var(--attica-green);
  outline-offset: -3px;
}

.attica-panel-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(5, 28, 34, .88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.attica-panel-image-link:hover .attica-panel-zoom-hint,
.attica-panel-image-link:focus-visible .attica-panel-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

html.attica-lightbox-open,
html.attica-lightbox-open body {
  overflow: hidden !important;
}

.attica-panel-lightbox[hidden] {
  display: none !important;
}

.attica-panel-lightbox {
  --attica-green: #9bc532;
  --attica-deep: #071d22;
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 14px;
  overflow: hidden;
}

.attica-panel-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .90);
  cursor: zoom-out;
}

.attica-panel-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1800px);
  height: calc(100vh - 28px);
  height: calc(100dvh - 28px);
  max-height: 1200px;
  overflow: hidden !important;
  border-radius: 10px;
  background: #101719;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
}

.attica-panel-lightbox-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 12px 10px 18px;
  background: #071d22;
  color: #fff;
}

.attica-panel-lightbox-title {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attica-panel-lightbox-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.attica-panel-lightbox-download,
.attica-panel-lightbox-close {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0 !important;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer;
}

.attica-panel-lightbox-download,
.attica-panel-lightbox-download:link,
.attica-panel-lightbox-download:visited {
  padding: 9px 16px;
  background-color: #9bc532 !important;
  color: #102f36 !important;
  -webkit-text-fill-color: #102f36 !important;
  box-shadow: none !important;
}

.attica-panel-lightbox-close {
  width: 42px;
  padding: 0;
  background-color: #fff !important;
  color: #16343b !important;
  font-size: 27px;
  line-height: 1;
}

.attica-panel-lightbox-download:hover,
.attica-panel-lightbox-download:focus-visible {
  background-color: #add63e !important;
  color: #102f36 !important;
}

.attica-panel-lightbox-close:hover,
.attica-panel-lightbox-close:focus-visible {
  background-color: #f2f5f4 !important;
  color: #16343b !important;
}

.attica-panel-lightbox-download:focus-visible,
.attica-panel-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.attica-panel-lightbox-image-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  overflow: hidden !important;
  background: #111;
  scrollbar-width: none;
}

.attica-panel-lightbox-image-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.attica-panel-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .attica-panel-lightbox {
    padding: 5px;
  }

  .attica-panel-lightbox-dialog {
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
    height: calc(100dvh - 10px);
    max-height: none;
    border-radius: 8px;
  }

  .attica-panel-lightbox-toolbar {
    min-height: 54px;
    padding: 7px;
  }

  .attica-panel-lightbox-title {
    display: none;
  }

  .attica-panel-lightbox-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .attica-panel-lightbox-download {
    min-width: 150px;
  }

  .attica-panel-lightbox-image-wrap {
    padding: 5px;
  }
}
