body{
  margin: 0px;
  padding: 0px;
  background-color: #F8F8F8;
  font-family: sans-serif;
}

/* NAVIGATE BAR */
#navigation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2rem;
}

#navigation-bar-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* IMAGE OF LOGO DEFENDER */
a > img{
  width: 198px;
  height: 52px;
}

/* BUTTONS OF NAVIGATION BAR */

.nav-links{
  list-style-type: none;
  padding: 0px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul li a{
  text-decoration: none;
  color: grey;
  font-size: 1.3rem;
}

nav ul li a:hover {
  border-bottom: 2px solid #A6A6A6;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* LANGUAGE SWITCHER */
.lang-item {
  display: flex;
  align-items: center;
}

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.selected-language {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* MAIN FLAG */
.selected-language .fi {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px #ccc;
}

/* DROPDOWN */
.language-dropdown {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  min-width: 100px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  overflow: hidden;
}

.language-dropdown.show {
  display: block;
}

/* ITEMS */
.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9rem;
  text-decoration: none; 
  color: black; 
}

.language-option:hover {
  background: #f4f4f4;
}

/* FLAGS IN MENU */
.language-option .fi {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px #ccc;
}

hr {
  margin: 0px;
}

/* HEADER */
.container-header{
  text-align: center;
}

.header-text{
  font-size: 3rem;
  color: black;
  margin: 15px 0px;
} 

/* GALLERY */
.gallery-section{
  padding: 8px 0 90px;
}

.gallery-wrapper{
  width: 90%;
  margin: 0px auto;
  background-color: #fff;
  box-shadow: 0 0.5rem 1.5625rem rgba(0,0,0,.1);
  padding: 38px;
  box-sizing: border-box;
}

.gallery-grid{
  column-count: 3;
  column-gap: 28px;
}

.gallery-item{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 28px;
  overflow: hidden;
  background: #fff;
}

.gallery-item img{
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.gallery-item:hover img{
  transform: scale(1.02);
}

/* FOOTER */
.footer-wrapper {
  margin-top: auto;
}

.footer {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 20px;
}

.footer-left {
  display: flex;
  text-align: left;
}

.footer-text{
  color: black;
  font-size: 1.7rem;
  margin: 0
}

.socials {
  display: flex;
  gap: 15px;
  font-size: 24px;
}

.socials i {
  font-size: 30px;
  color: black;
}

.socials a:hover {
  color: #0077ff;
  transform: scale(1.2);
}

.gallery-item img{
  cursor: pointer;
}

.gallery-item img:focus{
  outline: 3px solid #A6A6A6;
  outline-offset: 4px;
}

.lightbox-open{
  overflow: hidden;
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 90px;
  z-index: 3000;
}

.lightbox.active{
  display: flex;
}

.lightbox-content{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-content img{
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0.5rem 1.5625rem rgba(0,0,0,.35);
}

.lightbox-btn,
.lightbox-close{
  position: absolute;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  color: #111;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-btn:hover,
.lightbox-close:hover{
  background: #fff;
  transform: scale(1.05);
}

.lightbox-btn{
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.lightbox-btn:hover{
  transform: translateY(-50%) scale(1.05);
}

.lightbox-btn i{
  margin-left: 0;
  font-size: 24px;
}

.lightbox-prev{
  left: 26px;
}

.lightbox-next{
  right: 26px;
}

.lightbox-close{
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

/* ===== Variables ===== */
:root {
  --nav-bg: #ffffff;
  --nav-link: #555;
  --fz-body: clamp(14px, 1vw + 10px, 18px);
  --fz-h1: clamp(24px, 3.2vw + 10px, 40px);
  --fz-h2: clamp(20px, 2.4vw + 8px, 30px);
  --fz-h3: clamp(18px, 2vw + 6px, 24px);
}

/* ===== Base typography ===== */
body {
  font-size: var(--fz-body);
}

h1 {
  font-size: var(--fz-h1);
  line-height: 1.2;
}

/*h2,
.header-text,
.paragrap-header {
  font-size: var(--fz-h2);
  line-height: 1.3;
}*/

h3 {
  font-size: var(--fz-h3);
  line-height: 1.3;
}

p,
li {
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== Global image behavior ===== */
img,
.image-container img{
  max-width: 100%;
}

img,
.image-container img {
  display: block;
  height: auto;
}

/* Prevent overflow from editor-generated inline image sizes */
.wnd-image-container img {
  width: 100% !important;
  height: auto !important;
  position: static !important;
}

/* ===== Content containment ===== */
section {
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* Images inside grid/card sections */
section img,
.image-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  width: 80%;
  display: inline-block;
}

.slideshow img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.6rem;
  font-size: 1.6rem;
  border-radius: 8px;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slide-btn:hover {
  background: #fff;
}

.slide-btn.prev {
  left: 8px;
}

.slide-btn.next {
  right: 8px;
}

/* ===== Tablet / smaller desktop ===== */
@media (max-width: 1145px) {
  #navigation-bar {
    padding: 0.75rem 1rem;
  }

  #logo-img img,
  a > img,
  #navigation-bar img {
    width: clamp(140px, 25vw, 200px);
    height: auto;
  }

  nav ul.nav-links {
    position: absolute;
    top: 64px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--nav-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  nav ul.nav-links.active {
    display: flex;
  }

  nav ul li a {
    font-size: 1rem;
    color: var(--nav-link);
  }

  .hamburger {
    display: block;
    font-size: 3rem;
  }

  /* Stack main content blocks vertically */
  .row,
  .columns,
  .cards,
  .section-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }

  .row > *,
  .columns > *,
  .cards > *,
  .section-row > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Neutralize old float/column systems */
  .left,
  .right,
  .column,
  .col,
  [class*="col-"] {
    float: none !important;
    width: 100% !important;
  }

  /* Comfortable padding for text/image blocks */
  .gallery-grid{
    column-count: 2;
  }

  .gallery-wrapper{
    padding: 28px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  #logo-img img,
  a > img,
  #navigation-bar img {
    width: clamp(110px, 33vw, 160px);
    height: auto;
  }

  p,
  li {
    font-size: 0.8rem !important;
  }

  .header-text {
    font-size: 1.4rem !important;
  }

  .slide-btn {
    font-size: 1.2rem;
    padding: 0.28rem 0.5rem;
    top: 48%;
  }

  .gallery-grid{
    column-count: 1;
  }

  .gallery-wrapper{
    width: 94%;
    padding: 18px;
  }

  .header-text{
    font-size: 2.2rem;
  }
}

/* ===== Small spacing adjustments ===== */
@media (max-width: 768px) {
  section {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
