/*
Theme Name: Neve FSE Child
Template: neve-fse
Description: Child theme for Caroline Noerling portfolio
Version: 1.0.0
*/

/* ==========================================================================
   Gallery - Responsive Grid
   ========================================================================== */

.gallery {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  padding: 8px !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr !important;
  }
}

.gallery-item {
  margin: 0 !important;
  width: 100% !important;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Homepage - Hide header/title
   ========================================================================== */

body.home .wp-site-blocks > header,
body.home header.wp-block-template-part,
body.home .wp-block-template-part {
  display: none !important;
}

body.home .wp-site-blocks {
  padding-top: 0 !important;
}

/* Mobile - hide header completely and remove all top spacing */
@media (max-width: 768px) {
  body.home header,
  body.home .wp-site-blocks > header,
  body.home header.wp-block-template-part,
  body.home .wp-block-template-part[data-type="core/template-part"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.home .wp-site-blocks {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.home .wp-site-blocks > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.home main,
  body.home .wp-block-group {
    margin-top: 0 !important;
  }

  /* Hide empty spacer div on mobile */
  body.home main > .wp-block-group.alignfull:first-child {
    display: none !important;
  }

  /* Copyright text padding on mobile */
  body.home .has-text-align-right {
    margin-top: 8px !important;
    padding-right: 6px !important;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer-impressum {
  padding: 8px;
  text-align: right;
  font-size: 0.85rem;
  color: #666;
}

.site-footer-impressum a {
  color: #666;
  text-decoration: none;
}

.site-footer-impressum a:hover {
  text-decoration: underline;
}
