/* Instagram Section (slider bez swiperu)
********************************************************************* */

.sec-portfolio{
  background:#fff;
  color:#000;
}

/* Nadpisy */
.sec-portfolio h2{
  margin: 0 0 .9rem 0;
  font-weight: 800;
  color: #232223;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* Wrapper – už žádná vizuální karta kolem */
.ig-wrap{
  margin-top: 1.25rem;
}

/* header */
.ig-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.ig-hint{
  font-weight: 700;
  color: rgba(35,34,35,.72);
}

.ig-pill{
  display:inline-flex;
  align-items:center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(61,139,214,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  color:#232223;
  font-weight: 900;
}

.ig-ctrls{
  display:flex;
  gap: .6rem;
}

.ig-btn{
  appearance:none;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
  cursor:pointer;
  transition: transform .15s ease, background-color .15s ease;
}

.ig-btn:active{ transform: scale(.97); }
.ig-btn:hover{ background: rgba(255,255,255,0.92); }

.ig-btn i{
  color:#232223;
  font-size: 16px;
}

/* viewport */
.ig-viewport{
  overflow: hidden;
  position: relative;
  /* nechávám radius lehce – pokud chceš úplně “raw”, dej 0 */
  border-radius: 20px;
}

/* track */
.ig-track{
  display:flex;
  will-change: transform;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

/* 1/2/3 per view */
.ig-slide{
  flex: 0 0 100%;
  padding: 0;
}

@media (min-width: 640px){
  .ig-slide{ flex-basis: 50%; }
}
@media (min-width: 1024px){
  .ig-slide{ flex-basis: 33.3333%; }
}

/* item – žádná “karta”, jen fotka + overlay */
.ig-item{
  position: relative;
  display:block;
  margin: 10px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  transform: translateZ(0);
}

.ig-item img{
  display:block;
  width:100%;
  height: 15em;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
  filter: saturate(1.02) contrast(1.02);
  user-select: none;
  -webkit-user-drag: none;
}

@media (hover:hover){
  .ig-item:hover img{
    transform: scale(1.03);
    filter: saturate(1.06) contrast(1.05);
  }
}

/* gradient pro čitelnost overlay */
.ig-item::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.34) 0%,
    rgba(0,0,0,.16) 32%,
    rgba(0,0,0,0) 62%
  );
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events:none;
}

@media (hover:hover){
  .ig-item:hover::after{ opacity: 1; }
}

/* badge album/video */
.ig-badge{
  position:absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  pointer-events: none;
}

.ig-badge i{ color:#232223; font-size: 15px; }

/* overlay – jediný klikací prvek */
.ig-overlay{
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  pointer-events: auto;

  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .75rem;

  padding: .8rem .9rem;
  border-radius: 16px;

  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 30px rgba(0,0,0,.12);

  text-decoration: none;
  color: #232223 !important;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, background-color .2s ease;
}

.ig-overlay:hover,
.ig-overlay:focus,
.ig-overlay:active{
  color:#232223 !important; /* ✅ už nikdy nebělí */
}

.ig-ov-text{
  color:#232223 !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ig-ov-ic{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.ig-ov-ic i{ color:#232223; opacity:.92; }

/* hover show */
@media (hover:hover){
  .ig-item:hover .ig-overlay{
    opacity: 1;
    transform: translateY(0);
  }

  .ig-overlay:hover{
    background: rgba(255,255,255,.92);
    transform: translateY(0) scale(1.02);
  }
}

/* touch: overlay vždy */
@media (hover:none){
  .ig-overlay{
    opacity: 1;
    transform: none;
  }
}

/* dots */
/* Dots – mobilní “Apple” look, neroztahuje se */
.ig-dots{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;          /* ✅ když je hodně fotek, ať se to zalomí */
  gap: 8px;                 /* trochu menší */
  margin-top: 1.1rem;
  max-width: 92vw;          /* ✅ ne do nekonečna */
  margin-left: auto;
  margin-right: auto;
}

/* samotné tečky – zrušíme default padding/šířky buttonu */
.ig-dot{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;               /* ✅ bootstrap někdy přidá */
  margin: 0;
  min-width: 0;             /* ✅ aby z toho nebyly “pilulky” */
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.ig-dot[aria-selected="true"]{
  background: rgba(0,0,0,.90);
  transform: scale(1.55);
}

/* na hodně malých mobilech ještě kompaktnější */
@media (max-width: 380px){
  .ig-dots{ gap: 6px; }
  .ig-dot{ width: 6px; height: 6px; }
}

/* empty */
.ig-empty{
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(241,241,241,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 700;
  color:#232223;
}