/*
Theme Name: Twenty Twenty-Four Child
Template: twentytwentyfour
Description: 遅延読み込み＋クリック選択可能なLazy Image・Lazy Gallery子テーマ
Author: Youkanu
Version: 1.2
*/

@import url("../twentytwentyfour/style.css");

/* 共通 */
.lazyload {
  display: block;
  width: 100%;
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wp-block-column {
  flex: 1 1 calc(33.333% - 10.666px);
  min-width: 0;
}

@media screen and (max-width: 1024px) {
  .wp-block-column { flex: 1 1 calc(50% - 8px); }
}

@media screen and (max-width: 768px) {
  .wp-block-columns { flex-direction: column; }
  .wp-block-column { width: 100%; margin-bottom: 16px; flex: 1 1 100%; }
}

/* ギャラリー用 */
.lazy-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.lazy-gallery img {
    width: 100%;
    height: auto;
    display: block;
}
.lazy-gallery.columns-2 img { flex: 1 1 calc(50% - 8px); }
.lazy-gallery.columns-3 img { flex: 1 1 calc(33.333% - 10.666px); }
.lazy-gallery.columns-4 img { flex: 1 1 calc(25% - 12px); }
@media screen and (max-width: 768px) {
    .lazy-gallery img { flex: 1 1 100%; }
}

.map {
    position: relative;
    width: 200%;
    padding-top: 56.25%;
    /* 16:9のアスペクト比 */
    height: 0;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}