/*Start Share Button*/

.share-dropdown {
  position: relative;
  display: inline-block;
}

.galeri .col-4.right {
    text-align: end;
}

.share-btn {
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  color: #0066cc;
  font-weight: 600;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.share-btn::-webkit-details-marker {
  display: none;
}

.share-menu {
  position: absolute;
  bottom: 100%; /* Positions the menu above the button */
  margin-bottom: 6px; /* Spacing between button and dropdown */
  right: 0;
  text-align: left; /* Keeps link text left-aligned despite col-4 right alignment */
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15); /* Inverted shadow direction for drop-up */
  z-index: 20;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.share-menu a {
  padding: 8px 12px;
  text-decoration: none;
  color: #334155;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.share-menu a:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}


/*End Share Button*/


.galeri .tajuk a{ font-family: Roboto, "Arial", sans-serif;
    font-size: 1.6rem;
    line-height: 2.2rem;
    font-weight: 500;
    overflow: hidden;
    display: block;
    max-height: 4.4rem;
    display: box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
    }

.galeri .item-columns{
	margin-bottom:50px;
}

form#views-exposed-form-galeri-galeri-all {
    margin-bottom: 20px;
    display: inline-flex;
}

.galeri .form-select {
    width: 100%;
    height: 33px;
    margin: 8px 0px 0px 0px;
    border: solid 1px #767676 !important;
    border-radius: 3px;
    color: black;
    line-height: 1.3;
}

.galeri .form-text {
    height: 33px;
    margin-top: 8px;
    border-radius: 3px;
    margin-right: 18px;
    border: 1px solid #767676 !important;
}

.form-item-cat .form-select {
    height: 33px;
    margin-top: 8px;
    border-radius: 3px;
    margin-right: 18px;
    border: 1px solid #767676 !important;
    line-height: 1.0;
    font-size: 0.875em;
}

.form-item-cat .description {
    padding-left: 12px;
    font-size: 0.875em;
}

.views-exposed-form .js-form-type-date input {
    margin: 0;
    height: 33px;
    border-radius: 4px;
    border: 1px solid #767676;
}

/* Start CSS for Video */

.views-field-field-video-link img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #0000ff1c;
  border-radius: 5px;
  margin-bottom: 9px;
}

.video-embed-field-lazy {
  position: relative;
}

.video-embed-field-lazy-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: contain;
    border: 0px;
    margin: 0px;
    
/* Modern centering with base scale */
  transform: translate(-50%, -50%) scale(1);
  
  /* Smooth resize transition */
  transition: transform 0.3s ease;
}

/* Enlarge play button when the thumbnail container is hovered */
.video-embed-field-lazy:hover .video-embed-field-lazy-play {
  transform: translate(-50%, -50%) scale(1.25); /* Grows 25% larger */
}

/* End CSS for Video */

/* Start CSS for image */

/* Parent container positioning */
.container-image {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Ensure the image fills container cleanly */
.image-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #0000ff1c;
  border-radius: 5px;
}

/* Center and size the zoom icon overlay */
.zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 48px;                  /* Adjust icon width */
  height: 48px;                 /* Adjust icon height */
  color: #ffffff;               /* Icon color */
  pointer-events: none;         /* Lets clicks pass through to the colorbox link */
  
  /* Initial alignment center, size, and rotation */
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  
  /* Smooth transition for hover effects */
  transition: transform 0.5s ease-in-out;
}

/* Ensure SVG fills the icon container with a shadow for contrast */
.zoom-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.6));
}

/* Hover Animation: Scale up and rotate 360 degrees */
.container-image:hover .zoom-icon {
  transform: translate(-50%, -50%) scale(1.3) rotate(360deg);
}

/* End CSS for image */

/* Start CSS for Audio */
.audio-player.skin-ten.audio-player-attractive-layout {
    background-color: var(--single-audio-player-bg);
    border-radius: 5px;
    box-shadow: none;
    padding: 5px;
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #0000ff1c;
    margin-bottom: 9px;
}

.audio-player-progress-section {
    margin-top: 20px;
}

.audio-player, .audio-player-container {
    margin: 0px auto;
}

.audio-player-song-metadata {
    display: none;
}

.audio-player-utility-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 8px;
    border-top: 1px solid var(--single-audio-progress-bg);
}

/* End CSS for Audio */