.ant-layout-content {
  min-height: 600px;
  max-width: 1024px;
  padding: 24px;
  margin: auto;
}

.ant-layout-header {
  padding: 0px !important;
}

.ant-menu-submenu-title,
.ant-menu-item {
  padding: 0px 0px 0px 24px !important;
}

.gallery-figcaption--info .photo-caption {
  color: white;
}

.ant-page-header-heading {
  justify-content: center !important;
}

.ant-page-header-heading-left {
  flex-direction: column;
}

.ril__caption,
.ril__toolbar {
  background: none !important;
}
.ril__caption {
  display: block !important;
}

.ant-menu-submenu-active,
.ant-menu-submenu-selected,
.ant-menu-submenu-title:hover,
.ant-menu-submenu-open,
.ant-menu-item-selected a,
.ant-breadcrumb-link a,
.ant-menu-item a:hover {
  color: rgba(0, 0, 0, 0.85) !important;
  font-weight: bold;
}

.ant-menu-submenu::after,
.ant-menu-submenu-active::after,
.ant-menu-submenu-title::after,
.ant-menu-submenu-selected::after,
.ant-menu-submenu-open::after,
.ant-menu-item-selected::after,
.ant-menu-item::after,
.ant-menu-item:hover::after {
  border-bottom: none !important;
}

.caption-left a:hover {
  font-weight: bold;
}

.ril__navButtonNext {
  background: rgba(0, 0, 0, 0)
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+")
    no-repeat center !important;
}

.ril__navButtonPrev {
  background: rgba(0, 0, 0, 0)
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==")
    no-repeat center !important;
}

.caption-container {
  position: relative;
  visibility: hidden;
  transition: opacity 0.5s;
  z-index: 1000;
  width: 100%;
}

.caption-text {
  position: absolute;
  left: 0px;
  bottom: 0px;
  color: rgb(255, 255, 255);
  background-color: rgba(0, 0, 0, 0.25);
  padding: 0px 10px;
  display: table;
  font-size: 80%;
  width: 100%;
}

.img-wrapper:hover .caption-container {
  visibility: visible;
  transition: opacity 0.8s;
}

@media screen and (max-width: 576px) {
  .img-wrapper:hover .caption-container {
    visibility: hidden;
    transition: opacity 0.8s;
  }
  .ril__navButtons,
  .zoomNavButtons {
    display: none;
  }
}

.logo {
  float: left;
  margin-right: 24px;
  margin-left: 24px;
  padding: 0px;
  background: url("/logo.jpeg") no-repeat center;
  background-size: 24px;
  width: 24px;
  height: 64px;
}

.ant-menu-overflow,
.ant-menu,
.ant-menu-root,
.ant-menu-horizontal,
.ant-menu-light,
.ant-menu-submenu-title,
.ant-layout-header,
.ant-layout-footer {
  border: 0 !important;
}

.ant-menu-submenu-popup {
  top: 64px !important;
}

.footer-links {
  margin-bottom: 2em;
}

.footer-links a,
.markdown-data a {
  text-decoration: underline !important;
  color: rgba(0, 0, 0, 0.85) !important;
}

.ant-layout-footer {
  margin: 24px !important;
  padding: 0 !important;
}

.ant-spin-dot-item {
  background-color: gray !important;
}

.ant-pagination-item a {
  color: black !important;
  background: rgba(200, 200, 200, 0.5) !important;
}

.ant-pagination-item-active a {
  color: gray !important;
}

.ant-pagination-item-link {
  background: rgba(200, 200, 200, 0.5) !important;
}

.ril-zoom-in,
.ril-zoom-out {
  display: none;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
}

/* .gallery-photo {
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}*/

.gallery-photo {
    width: 100%; /* Užima visą tėvinio elemento plotį */
    height: 100%; /* Užima visą tėvinio elemento aukštį */
    object-fit: cover; /* Paveikslėlis neiškraipomas */
}

/*.img-wrapper {
    margin: 10px;
    overflow: hidden;
    display: inline-block;
    width: 200px;
    height: 200px;
    background: #f3f3f3;  Placeholder color before image loads 
}*/

.img-wrapper {
    width: 250px; /* Tinkamas plotis */
    height: 250px; /* Tinkamas aukštis */
    margin: 10px;
    display: inline-block;
}

#sentinel {
    height: 1px;
}

.img-wrapper:hover .gallery-photo {
    transform: scale(1.05);
}

/* Lightbox pagrindas */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Lightbox turinys */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.lightbox img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Zoom animacija */
.lightbox img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

/* Mygtukai (navigacija ir uždarymas) */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Go Anchor*/
/* Floating anchor button */
.anchor-floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ff6347;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    display: none; /* Initially hidden */
}

.anchor-floating-button img {
    width: 40px;
    height: 40px;
}

.thumbnail-anchor {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("anchor.svg");
    cursor: pointer;
    z-index: 10;

    /* Pradinė būsena: šiek tiek peršviečiama */
    opacity: 0; /* Pradinis peršviečiamumas */
    pointer-events: all; /* Užtikrina, kad ikona reaguos į pelės įvykius */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.img-wrapper:hover .thumbnail-anchor {
    /* Užvedus pelę ant viso paveikslėlio: ikona tampa šiek tiek ryškesnė */
    opacity: 0.7;
}

.img-wrapper .thumbnail-anchor:hover {
    /* Užvedus pelę tiesiogiai ant ikonos: pilnai matoma */
    opacity: 1;
}

